From fd5a7a07aef61007e9f0afa82d4d8f868a986a9a Mon Sep 17 00:00:00 2001 From: rugk Date: Wed, 22 Jun 2016 18:08:25 +0200 Subject: [PATCH] Soft fail for chmod errors --- lib/persistence.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/persistence.php b/lib/persistence.php index 38b47a79..36b964b8 100644 --- a/lib/persistence.php +++ b/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; } }