From 7cad6ccce0f2fdcfc61e1071cb6373e9d28bcd63 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Fri, 23 Mar 2012 16:48:16 +0100 Subject: donĀ“t show ugly error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 lib/helper.php (limited to 'lib') diff --git a/lib/helper.php b/lib/helper.php old mode 100644 new mode 100755 index 75942f092cf..66f31d929be --- a/lib/helper.php +++ b/lib/helper.php @@ -220,7 +220,7 @@ class OC_Helper { $fullpath = $path.'/'.$file; if(is_link($fullpath)) return FALSE; - elseif(!is_dir($fullpath) && !chmod($fullpath, $filemode)) + elseif(!is_dir($fullpath) && !@chmod($fullpath, $filemode)) return FALSE; elseif(!self::chmodr($fullpath, $filemode)) return FALSE; -- cgit v1.2.3