Merge pull request #35 from jackmcdade/master

Product price can be (int) 0
This commit is contained in:
Rob Gloudemans
2014-03-19 15:42:43 +01:00

View File

@@ -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;
}