Merge pull request #22135 from owncloud/global-auth-warning

fix warning caused by global auth
This commit is contained in:
Thomas Müller 2016-02-05 10:04:22 +01:00
commit 96ccbca2e3
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;
}