From bcacd3175830f4724d6ff6d2e682d013d2fb4a5b Mon Sep 17 00:00:00 2001 From: Vaidas Lungis Date: Tue, 27 Jan 2015 16:57:56 +0200 Subject: [PATCH] update $result array --- src/bb-modules/Cart/Service.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/bb-modules/Cart/Service.php b/src/bb-modules/Cart/Service.php index f1dc86d5f..8b79483c5 100644 --- a/src/bb-modules/Cart/Service.php +++ b/src/bb-modules/Cart/Service.php @@ -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)