@@ -161,7 +161,9 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | while ($i < $max) { |
| 163 | 163 | $obj = $this->db->fetch_object($res); |
| 164 | - if (!$obj) break; |
|
| 164 | + if (!$obj) { |
|
| 165 | + break; |
|
| 166 | + } |
|
| 165 | 167 | |
| 166 | 168 | $pl = new Productlot($this->db); |
| 167 | 169 | if ($pl->fetch((int) $obj->rowid) > 0) { |
@@ -176,7 +178,9 @@ discard block |
||
| 176 | 178 | $totRes = $this->db->query($sqlTotals); |
| 177 | 179 | if ($totRes) { |
| 178 | 180 | $row = $this->db->fetch_object($totRes); |
| 179 | - if ($row && isset($row->total)) $total = (int) $row->total; |
|
| 181 | + if ($row && isset($row->total)) { |
|
| 182 | + $total = (int) $row->total; |
|
| 183 | + } |
|
| 180 | 184 | } |
| 181 | 185 | |
| 182 | 186 | // Evite division par zéro |