rename intaro to retailcrm, fix if cond
This commit is contained in:
parent
042ce91df7
commit
d161d1a491
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "intaro/atol-online-client",
|
||||
"name": "retailcrm/atol-online-client",
|
||||
"type": "library",
|
||||
"license": "proprietary",
|
||||
"description": "Api client for Atol Online",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user