Fix phpcs warning

This commit is contained in:
Laurent Destailleur
2017-05-22 10:45:02 +02:00
parent 8301e24261
commit f5e29d6c86
22 changed files with 50 additions and 26 deletions

View File

@@ -163,7 +163,8 @@ class CommandeApi extends DolibarrApi
{
$i=0;
$num = $db->num_rows($result);
while ($i < min($num, ($limit <= 0 ? $num : $limit)))
$min = min($num, ($limit <= 0 ? $num : $limit));
while ($i < $min)
{
$obj = $db->fetch_object($result);
$commande_static = new Commande($db);