]> source.dussan.org Git - nextcloud-server.git/commitdiff
donĀ“t show ugly error message
authorFrank Karlitschek <karlitschek@kde.org>
Fri, 23 Mar 2012 15:48:16 +0000 (16:48 +0100)
committerFrank Karlitschek <karlitschek@kde.org>
Fri, 23 Mar 2012 15:48:16 +0000 (16:48 +0100)
lib/helper.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 75942f0..66f31d9
@@ -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;