fix check api version (#41)

This commit is contained in:
Akolzin Dmitry 2017-08-16 14:16:51 +02:00 committed by Alex Lushpai
parent 1052781689
commit 82d93de94b

View File

@ -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');
}