]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix warning caused by global auth
authorRobin Appelman <icewind@owncloud.com>
Thu, 4 Feb 2016 15:53:13 +0000 (16:53 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 4 Feb 2016 15:53:13 +0000 (16:53 +0100)
apps/files_external/lib/auth/password/globalauth.php

index dcfea65b55546eb5d0236ed0593cb8f19fd1549f..b1e52fb53ab2ea42e3508c7da233642f12019db5 100644 (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;
                }