From 56ec1a72473ff68024c3f64e146b2866fd7e233f Mon Sep 17 00:00:00 2001 From: Vitaly Artemev Date: Tue, 9 Aug 2016 11:14:58 +0400 Subject: [PATCH] fix explodeUids --- retailcrm/src/Bulders/CustomersBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retailcrm/src/Bulders/CustomersBuilder.php b/retailcrm/src/Bulders/CustomersBuilder.php index 8db5597..324d52e 100644 --- a/retailcrm/src/Bulders/CustomersBuilder.php +++ b/retailcrm/src/Bulders/CustomersBuilder.php @@ -41,11 +41,11 @@ class CustomersBuilder extends Builder */ public function buildCustomersById($uidString) { + $uids = DataHelper::explodeUids($uidString); $query = $this->rule->getSQL('customers_uid'); $handler = $this->rule->getHandler('CustomersHandler'); $this->sql = $this->container->db->prepare($query); $this->sql->bindParam(':orderIds', $uids); - $uids = DataHelper::explodeUids($uidString); return $this->build($handler); } @@ -74,11 +74,11 @@ class CustomersBuilder extends Builder */ public function buildCustomersUpdateById($uidString) { + $uids = DataHelper::explodeUids($uidString); $query = $this->rule->getSQL('customers_update_uid'); $handler = $this->rule->getHandler('CustomersHandler'); $this->sql = $this->container->db->prepare($query); $this->sql->bindParam(':orderIds', $uids); - $uids = DataHelper::explodeUids($uidString); return $this->build($handler); }