fix warning caused by global auth

This commit is contained in:
Robin Appelman 2016-02-04 16:53:13 +01:00
parent 089b60cd25
commit b7d27ab141
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ class GlobalAuth extends AuthMechanism {
public function getAuth($uid) {
$auth = $this->credentialsManager->retrieve($uid, self::CREDENTIALS_IDENTIFIER);
if (!is_array($auth)) {
return [];
return [
'user' => '',
'password' => ''
];
} else {
return $auth;
}