Selaa lähdekoodia

Soft fail for chmod errors

rugk 10 vuotta sitten
vanhempi
sitoutus
fd5a7a07ae
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/persistence.php

+ 1 - 1
lib/persistence.php

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