fixed SQL error when trying to generate an order without selecting any product line

This commit is contained in:
Cédric Salvador 2013-06-10 16:04:34 +02:00
parent 52cfecd0af
commit bcbe940ac0

View File

@ -123,9 +123,9 @@ if($action == 'order'){
dol_print_error($db);
dol_syslog("replenish.php: ".$error, LOG_ERROR);
}
$db->free($resql);
}
}
$db->free($resql);
//we now know how many orders we need and what lines they have
$i = 0;
$orders = array();