From b7d27ab141ba13b7e3481a025861e05104931c69 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 4 Feb 2016 16:53:13 +0100 Subject: [PATCH] fix warning caused by global auth --- apps/files_external/lib/auth/password/globalauth.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.5