Explorar o código

Soft fail for chmod errors

rugk %!s(int64=10) %!d(string=hai) anos
pai
achega
fd5a7a07ae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/persistence.php

+ 1 - 1
lib/persistence.php

@@ -119,7 +119,7 @@ abstract class persistence
         if ($writtenBytes === false || $writtenBytes < strlen($data)) {
         if ($writtenBytes === false || $writtenBytes < strlen($data)) {
             throw new Exception('unable to write to file ' . $file, 13);
             throw new Exception('unable to write to file ' . $file, 13);
         }
         }
-        chmod($file, 0640); // protect file access
+        @chmod($file, 0640); // protect file access
         return $file;
         return $file;
     }
     }
 }
 }