dever 3 rokov pred
rodič
commit
c588f0eb63
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 = array();
             $where['where_id'] = $info['id'];
             $where['where_id'] = $info['id'];
             if ($num <= 0) {
             if ($num <= 0) {
-                $state = Dever::db('shop/cart')->delete($where);
+                $state = Dever::db('shop/cart')->delete($info['id']);
             } else {
             } else {
                 $where['status'] = $status;
                 $where['status'] = $status;
                 $where['num'] = $num;
                 $where['num'] = $num;