dever пре 3 година
родитељ
комит
c588f0eb63
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/shop/src/Buy.php

+ 1 - 1
app/shop/src/Buy.php

@@ -164,7 +164,7 @@ class Buy extends Core
             $where = array();
             $where['where_id'] = $info['id'];
             if ($num <= 0) {
-                $state = Dever::db('shop/cart')->delete($where);
+                $state = Dever::db('shop/cart')->delete($info['id']);
             } else {
                 $where['status'] = $status;
                 $where['num'] = $num;