@@ -271,10 +271,11 @@ |
||
271 | 271 | $item->sales ++; |
272 | 272 | $item->save(); |
273 | 273 | |
274 | - if (empty($_GET['count'])) |
|
275 | - $count = 1; |
|
276 | - else |
|
277 | - $count = (float) $_GET['count']; |
|
274 | + if (empty($_GET['count'])) { |
|
275 | + $count = 1; |
|
276 | + } else { |
|
277 | + $count = (float) $_GET['count']; |
|
278 | + } |
|
278 | 279 | |
279 | 280 | $cart = $this->ecommerce->getCurCart(); |
280 | 281 | $stages = Ecommerce\Cart\Stage::getList(); |