Skip to content

Commit

Permalink
Fix: division by zero, if store has only Missing orders
Browse files Browse the repository at this point in the history
  • Loading branch information
arnisjuraga committed Jan 3, 2017
1 parent 1628b61 commit 2811347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/admin/controller/common/column_left.php
Expand Up @@ -875,7 +875,7 @@ public function index() {

$other_total = $this->model_sale_order->getTotalOrders(array('filter_order_status' => implode(',', $order_status_data)));

if ($other_total) {
if ($other_total && $order_total) {
$data['other_status'] = round(($other_total / $order_total) * 100);
} else {
$data['other_status'] = 0;
Expand Down

0 comments on commit 2811347

Please sign in to comment.