mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Merge pull request #35 from jackmcdade/master
Product price can be (int) 0
This commit is contained in:
@@ -294,7 +294,7 @@ class Cart {
|
||||
*/
|
||||
protected function addRow($id, $name, $qty, $price, Array $options = array())
|
||||
{
|
||||
if(empty($id) || empty($name) || empty($qty) || empty($price))
|
||||
if(empty($id) || empty($name) || empty($qty) || ! isset($price))
|
||||
{
|
||||
throw new Exceptions\ShoppingcartInvalidItemException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user