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' => '',