Fix check api version (#18)

This commit is contained in:
Akolzin Dmitry 2017-08-16 14:17:46 +02:00 committed by Alex Lushpai
parent b9f557277c
commit 77298a48a2

View File

@ -629,7 +629,7 @@ class RetailCRM extends Module
$api = new RetailcrmProxy($settings['address'], $settings['token'], _PS_ROOT_DIR_ . '/retailcrm.log', $settings['version']);
$response = $api->statisticUpdate();
if ($response->isSuccessful()) return true;
if ($response['errorMsg'] != 'API method not found') return true;
return false;
}