From 82d93de94ba8f570f922747326a47e986afe1a79 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Wed, 16 Aug 2017 14:16:51 +0200 Subject: [PATCH] fix check api version (#41) --- 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'); }