From 04a084f94fd8a851839239a7c3de0fa4feac7cb7 Mon Sep 17 00:00:00 2001 From: DmitryZagorulko Date: Mon, 22 May 2017 21:13:18 +0400 Subject: [PATCH] bug fixes (#12) --- retailcrm/lib/RetailcrmReferences.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retailcrm/lib/RetailcrmReferences.php b/retailcrm/lib/RetailcrmReferences.php index c5dc47c..ddd8ef1 100644 --- a/retailcrm/lib/RetailcrmReferences.php +++ b/retailcrm/lib/RetailcrmReferences.php @@ -129,7 +129,8 @@ public function getPaymentAndDeliveryForDefault() ) ); } - if (!empty($this->getSystemPaymentModules())) { + $paymentModules = $this->getSystemPaymentModules(); + if (!empty($paymentModules)) { $paymentTypes[] = array( 'id_option' => '',