diff --git a/composer.json b/composer.json index 5c3f764..0707b80 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "intaro/atol-online-client", + "name": "retailcrm/atol-online-client", "type": "library", "license": "proprietary", "description": "Api client for Atol Online", diff --git a/src/AtolOnlineClient/AtolOnlineApi.php b/src/AtolOnlineClient/AtolOnlineApi.php index 30ae871..2ddb0f9 100644 --- a/src/AtolOnlineClient/AtolOnlineApi.php +++ b/src/AtolOnlineClient/AtolOnlineApi.php @@ -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;