Completed
Branch develop (bdd8dc)
by
unknown
22:55
created
htdocs/product/stock/class/api_productlots.class.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.