update $result array

This commit is contained in:
Vaidas Lungis committed 2015-01-27 16:57:56 +02:00
1 parent 88d414360d
commit bcacd31758
1 file changed
+5 -6
+5 -6
View File
@@ -579,10 +579,6 @@ class Service implements InjectionAwareInterface
$this->di['db']->store($order);
}
}
$result = array($master_order, $invoiceModel->id, $orders);
} else {
$result = array($master_order, null, $orders);
}
//activate orders if product is setup to be activated after order place or order total is $0
@@ -613,8 +609,11 @@ class Service implements InjectionAwareInterface
}
}
$result[2] = $ids;
return $result;
return array(
$master_order,
isset($invoiceModel) ? $invoiceModel->id : null,
$ids,
);
}
public function usePromo(\Model_Promo $promo)