Small quality fixes in UserApi.

This commit is contained in:
Alexey Skobkin 2017-01-06 00:54:19 +03:00
parent 48b47c9bc2
commit 4e9c556320
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class UserApi extends AbstractApi
{
$auth = $this->authenticate($login, $password);
if (!$auth->getError() && $auth->getToken()) {
if (null === $auth->getError() && null !== $auth->getToken()) {
$this->logout($auth);
return true;