diff --git a/plugins/Login/Auth.php b/plugins/Login/Auth.php
index <HASH>..<HASH> 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']);
             }
Prevent notice on the Upgrade screen when triggering <I>-b5 refs #<I>