From: Robin Appelman Date: Sun, 24 Apr 2011 13:23:18 +0000 (+0200) Subject: fix chmodr X-Git-Tag: v3.0~267^2~558^2~34^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8d52fdb7faf4be4ed4282ecdd3e3a08af1fbf150;p=nextcloud-server.git fix chmodr --- diff --git a/lib/helper.php b/lib/helper.php index c141d6f0499..009e961397b 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -166,7 +166,7 @@ class OC_HELPER { * * Makes 2048 to 2 kB. */ - function chmodr($path, $filemode) { + static function chmodr($path, $filemode) { if (!is_dir($path)) return chmod($path, $filemode); $dh = opendir($path); @@ -177,7 +177,7 @@ class OC_HELPER { return FALSE; elseif(!is_dir($fullpath) && !chmod($fullpath, $filemode)) return FALSE; - elseif(!chmodr($fullpath, $filemode)) + elseif(!self::chmodr($fullpath, $filemode)) return FALSE; } }