Ne pas reporté les WARNING, ni les NOTICES

This commit is contained in:
Michael RICOIS 2012-02-01 14:34:51 +00:00
parent 684a851804
commit b1ac5bb6f2

View File

@ -1,5 +1,7 @@
#!/usr/bin/php
<?php
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
@ -1013,6 +1015,7 @@ function annoncesEntete($values)
}
function annoncesData($siren, $nic, $values = false)
{
$tabData = array();
if ($values!==false) {
$tabDeja = array();
$tabTmp = explode(',', $values);
@ -1035,10 +1038,8 @@ function annoncesData($siren, $nic, $values = false)
}
}
}
return $tabData;
} else {
return array();
}
}
return $tabData;
}