mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-16 21:04:42 +00:00
Fixed bug
This commit is contained in:
@@ -428,7 +428,6 @@ class Cart {
|
||||
protected function updateQty($rowId, $qty)
|
||||
{
|
||||
if($qty <= 0)
|
||||
if($qty == 0)
|
||||
{
|
||||
return $this->remove($rowId);
|
||||
}
|
||||
@@ -461,4 +460,4 @@ class Cart {
|
||||
return is_array($first);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user