Protection objet

This commit is contained in:
Michael RICOIS 2012-02-01 16:52:01 +00:00
parent 4e2aa5a0e8
commit 625471e2c7

View File

@ -63,7 +63,7 @@ $sql = $commandesM->select()
->where("dateStart = '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);
$result = $commandesM->fetchAll($sql);
if (count($result)>0) {
$info = $result->current();
echo "Lancement enrichissement $info->id\n";