Skip to content

Commit

Permalink
remove possible ecommerce warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed May 24, 2019
1 parent 59f8114 commit 4e96949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/modules/ecommerce/models/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ function getOrderDiscounts() {
/*$od = new order_discounts();
return $od->find('all', 'orders_id =' . $this->id);*/
if (isset($this->order_discounts)) return $this->order_discounts;
else return null;
else return array();
}

public function calculateGrandTotal()
Expand Down

0 comments on commit 4e96949

Please sign in to comment.