From 0797b9b7f13cfe1754cc687bf9bf29af8210ac3b Mon Sep 17 00:00:00 2001 From: iyzoer Date: Wed, 16 Aug 2017 15:04:57 +0300 Subject: [PATCH] fix check api version --- admin/controller/extension/module/retailcrm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/controller/extension/module/retailcrm.php b/admin/controller/extension/module/retailcrm.php index 13533e7..9f4d30b 100644 --- a/admin/controller/extension/module/retailcrm.php +++ b/admin/controller/extension/module/retailcrm.php @@ -546,7 +546,7 @@ class ControllerExtensionModuleRetailcrm extends Controller $response = $this->retailcrm->statisticUpdate(); - if (!$response->isSuccessful()) { + if ($response['errorMsg'] == 'API method not found') { $this->_error['warning'] = $this->language->get('text_error_api'); }