issue #0000533, getListeSurveillancesCsv

This commit is contained in:
Michael RICOIS 2011-02-01 14:04:51 +00:00
parent d27aa9cfba
commit 3c70ba52a9

View File

@ -2996,6 +2996,10 @@ class WsInterne extends WsScore
//Initialisation //Initialisation
$error = new ErrorType(); $error = new ErrorType();
if (empty($source)) $source = '';
if (empty($login)) $login = '';
if (empty($idClient)) $idClient = 0;
debugLog('I',"getListeSurveillancesCsv Début $source $login $idClient",__LINE__,__FILE__, __FUNCTION__, __CLASS__); debugLog('I',"getListeSurveillancesCsv Début $source $login $idClient",__LINE__,__FILE__, __FUNCTION__, __CLASS__);
@ -3091,7 +3095,7 @@ class WsInterne extends WsScore
$fp = fopen(DOC_WEB_LOCAL."csv/listesurv-$source-$login-$idClient.sql", 'w'); $fp = fopen(DOC_WEB_LOCAL."csv/listesurv-$source-$login-$idClient.sql", 'w');
fwrite($fp, $sql.EOL); fwrite($fp, $sql.EOL);
fclose($fp); fclose($fp);
exec(APPLICATION_PATH."/batch/sql2csv.php jo ".DOC_WEB_LOCAL."csv/listesurv-$source-$login-$idClient.sql $fichierCsv > /dev/null &"); exec(APPLICATION_PATH."/../batch/sql2csv.php jo ".DOC_WEB_LOCAL."csv/listesurv-$source-$login-$idClient.sql $fichierCsv > /dev/null &");
$size=$cache=0; $size=$cache=0;
} }