From d161d1a491134b8bb5d88275bff8329f043ddc03 Mon Sep 17 00:00:00 2001 From: Alexey Chelnakov Date: Fri, 22 Jun 2018 11:39:25 +0300 Subject: [PATCH] rename intaro to retailcrm, fix if cond --- composer.json | 2 +- src/AtolOnlineClient/AtolOnlineApi.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;