]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix regression in return value of OC_Util::checkDataDirectoryPermissions due to ... 21766/head
authorMorris Jobke <hey@morrisjobke.de>
Thu, 9 Jul 2020 07:29:44 +0000 (09:29 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 9 Jul 2020 07:29:44 +0000 (09:29 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/legacy/OC_Util.php

index 8d2bf477d529526800d2f00f7bf901fd8f357e18..82b7abf6c8f04b927878de9a2ae50e574de098ff 100644 (file)
@@ -1006,10 +1006,10 @@ class OC_Util {
                        $perms = substr(decoct(@fileperms($dataDirectory)), -3);
                        if ($perms[2] !== '0') {
                                $l = \OC::$server->getL10N('lib');
-                               return [
+                               return [[
                                        'error' => $l->t('Your data directory is readable by other users'),
                                        'hint' => $l->t('Please change the permissions to 0770 so that the directory cannot be listed by other users.'),
-                               ];
+                               ]];
                        }
                }
                return [];