summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-04 16:53:13 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-04 16:53:13 +0100
commitb7d27ab141ba13b7e3481a025861e05104931c69 (patch)
tree9f7879fbb3807008f0f9762c08fdb8b90049b383 /apps/files_external
parent089b60cd255ecfc7b25c2f5b36179c2bdc46bcf6 (diff)
downloadnextcloud-server-b7d27ab141ba13b7e3481a025861e05104931c69.tar.gz
nextcloud-server-b7d27ab141ba13b7e3481a025861e05104931c69.zip
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;
}