mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
Fix check api version (#18)
This commit is contained in:
parent
b9f557277c
commit
77298a48a2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user