diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-01-28 03:44:56 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-01-28 03:44:56 +0400 |
commit | e012b22f224c84b751e949b458627ebe30a4dca9 (patch) | |
tree | 07fa6ea10b2691bc8a073a0ae0a5264e7c2daffc /plugins/Login/Auth.php | |
parent | 5dadac7d47ad5b8e299c2413428f1f784062557b (diff) |
Prevent notice on the Upgrade screen when triggering 2.0.4-b5 refs #4564
Diffstat (limited to 'plugins/Login/Auth.php')
-rw-r--r-- | plugins/Login/Auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Login/Auth.php b/plugins/Login/Auth.php index 865f7aa0a7..5d108a978e 100644 --- a/plugins/Login/Auth.php +++ b/plugins/Login/Auth.php @@ -66,7 +66,7 @@ class Auth implements \Piwik\Auth || $user['token_auth'] === $this->token_auth) ) { $this->setTokenAuth($user['token_auth']); - $code = $user['superuser_access'] ? AuthResult::SUCCESS_SUPERUSER_AUTH_CODE : AuthResult::SUCCESS; + $code = !empty($user['superuser_access']) ? AuthResult::SUCCESS_SUPERUSER_AUTH_CODE : AuthResult::SUCCESS; return new AuthResult($code, $this->login, $user['token_auth']); } |