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