Protection objet
This commit is contained in:
parent
77d9827278
commit
4e2aa5a0e8
@ -53,7 +53,7 @@ $sql = $commandesM->select()
|
||||
->where("dateStart != '0000-00-00 00:00:00'")
|
||||
->where("dateStop = '0000-00-00 00:00:00'");
|
||||
$result = $commandesM->fetchAll($sql);
|
||||
if (count($result->toArray())>0){
|
||||
if (count($result)>0){
|
||||
exit;
|
||||
}
|
||||
|
||||
@ -61,9 +61,10 @@ if (count($result->toArray())>0){
|
||||
$sql = $commandesM->select()
|
||||
->where('idProfil != ?', 0)
|
||||
->where("dateStart = '0000-00-00 00:00:00'")
|
||||
->where("dateStop = '0000-00-00 00:00:00'");
|
||||
->where("dateStop = '0000-00-00 00:00:00'")
|
||||
->order('dateAdded ASC')->limit(1);
|
||||
$result = $commandesM->fetchAll($sql, 'dateAdded ASC', 1);
|
||||
if ($result!=null){
|
||||
if (count($result)>0) {
|
||||
$info = $result->current();
|
||||
echo "Lancement enrichissement $info->id\n";
|
||||
exec(realpath(dirname(__FILE__))."/enrichissement.php --id ".$info->id." &");
|
||||
|
Loading…
Reference in New Issue
Block a user