Correction rowset

This commit is contained in:
Michael RICOIS 2012-02-01 14:22:16 +00:00
parent d20e31cd61
commit a06e4f4785

View File

@ -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;
}
@ -62,5 +62,6 @@ $sql = $commandesM->select()
->where('idProfil != ?', 0)
->where("dateStop = '0000-00-00 00:00:00'");
$result = $commandesM->fetchAll($sql, 'dateAdded ASC', 1);
echo "Lancement enrichissement $result->id\n";
exec(realpath(dirname(__FILE__))."/enrichissement.php --id ".$result->id." &");
$info = $result->current();
echo "Lancement enrichissement $info->id\n";
exec(realpath(dirname(__FILE__))."/enrichissement.php --id ".$info->id." &");