Small quality fixes in UserApi.

This commit is contained in:
Alexey Skobkin 2017-01-06 00:54:19 +03:00
parent 48b47c9bc2
commit 4e9c556320

View file

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