From: Alexandre Emsenhuber Date: Fri, 3 Jun 2011 10:20:45 +0000 (+0000) Subject: Removed usage of error suppression operator X-Git-Tag: 1.31.0-rc.0~29743 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=c9bad9371503a92ff7b34d14cbfa8f48a609c63e;p=lhc%2Fweb%2Fwiklou.git Removed usage of error suppression operator --- diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index 3b6ba71c0f..bdd363aefa 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -189,7 +189,9 @@ class MessageCache { fwrite( $file, $hash . $serialized ); fclose( $file ); - @chmod( $filename, 0666 ); + wfSuppressWarnings(); + chmod( $filename, 0666 ); + wfRestoreWarnings(); } function saveToScript( $array, $hash, $code ) {