1
0
mirror of synced 2024-11-24 14:06:05 +03:00

rename intaro to retailcrm, fix if cond

This commit is contained in:
Alexey Chelnakov 2018-06-22 11:39:25 +03:00
parent 042ce91df7
commit d161d1a491
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"name": "intaro/atol-online-client",
"name": "retailcrm/atol-online-client",
"type": "library",
"license": "proprietary",
"description": "Api client for Atol Online",

View File

@ -208,7 +208,7 @@ class AtolOnlineApi
$this->logger->error($response->error->code . ' '. $response->error->text);
}
} else {
if (isset($response->code) && $response->code == 1 || $response->code == 0) {
if (isset($response->code) && ($response->code == 1 || $response->code == 0)) {
$this->cache->save($this->getTokenCacheKey(), $response->token, self::TOKEN_CACHE_TIME);
return $response->token;