Added quotation around an array name
This commit is contained in:
1 parent
52f4484572
commit
1c189d84fa
1 file changed
+1
-1
+1
-1
@@ -95,7 +95,7 @@ class Order {
|
||||
$item = new OrderItem($row['id']);
|
||||
if ($item->product_id == $data['product_id']) {
|
||||
// item already exists in order, update quantity
|
||||
$item->setQuantity($item->quantity + $data[quantity]);
|
||||
$item->setQuantity($item->quantity + $data['quantity']);
|
||||
$added = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user