소스 검색

Soft fail for chmod errors

rugk 10 년 전
부모
커밋
fd5a7a07ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }
 }