Merge branch 'develop' into 'master'

Develop into master : correction logger

See merge request !5
This commit is contained in:
potier 2017-04-13 12:37:18 +00:00
commit b58db8e199
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
} else {
$level = Logger::NOTICE;
}
$log->pushHandler(new StreamHandler($logFile), $level);
$log->pushHandler(new StreamHandler($logFile, $level));
$log->pushProcessor(new IntrospectionProcessor());
Zend_Registry::set('logger', $log);

View File

@ -64,7 +64,7 @@ class Entreprise extends Scores_Ws_Server
// --- Correction pour l'envoi des dates
if ( !empty($DateCreaEn) ) {
$Infos->DateCreaEn = $DateCreaEn;
if (strlen($DateCreaEn)<8) {
if (strlen($DateCreaEn) < 8) {
$Infos->DateCreaEn = str_pad($DateCreaEn, 8, '0', STR_PAD_RIGHT);
}
if (substr($DateCreaEn, -2) * 1 == 0) {