summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-05 10:04:22 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-05 10:04:22 +0100
commit96ccbca2e3c0e588eb2d2cadefda6b8556f2e97b (patch)
tree3b91cbc1012e47341d48d25fa1e3c3250295ed1d /apps/files_external
parent0ed2108b7f3a8537643b89823d628e4db18ecf61 (diff)
parentb7d27ab141ba13b7e3481a025861e05104931c69 (diff)
downloadnextcloud-server-96ccbca2e3c0e588eb2d2cadefda6b8556f2e97b.tar.gz
nextcloud-server-96ccbca2e3c0e588eb2d2cadefda6b8556f2e97b.zip
Merge pull request #22135 from owncloud/global-auth-warning
fix warning caused by global auth
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/auth/password/globalauth.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/lib/auth/password/globalauth.php b/apps/files_external/lib/auth/password/globalauth.php
index dcfea65b555..b1e52fb53ab 100644
--- a/apps/files_external/lib/auth/password/globalauth.php
+++ b/apps/files_external/lib/auth/password/globalauth.php
@@ -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;
}