diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-24 15:23:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-24 15:23:18 +0200 |
commit | 8d52fdb7faf4be4ed4282ecdd3e3a08af1fbf150 (patch) | |
tree | 5c8073b1b810ff638751183d45181db90634837f /lib | |
parent | 08cfe4b6ffb651f13d13741eebba9bac373a46d7 (diff) | |
download | nextcloud-server-8d52fdb7faf4be4ed4282ecdd3e3a08af1fbf150.tar.gz nextcloud-server-8d52fdb7faf4be4ed4282ecdd3e3a08af1fbf150.zip |
fix chmodr
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |