summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-12 22:24:08 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-12 22:24:08 +0100
commit575836eb24be7ddbbb2d03e5c5de95f1a6b9c81e (patch)
tree03a548d59b3bba779e69d2ef688d243b8f9f5748
parentce3ac0671bce24b0af715de77bc1f9b311c4b11f (diff)
disable PHP warning when fopen fails
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--PHP_DW.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/PHP_DW.php b/PHP_DW.php
index ee6a835..8c20cba 100644
--- a/PHP_DW.php
+++ b/PHP_DW.php
@@ -13,7 +13,7 @@ class PHP_DW {
}
private function __incr_count($filename) {
- $fh = fopen($this->base_count . '/' . $filename . '.cnt', "a+");
+ $fh = @fopen($this->base_count . '/' . $filename . '.cnt', "a+");
if (is_resource($fh) and flock($fh, LOCK_EX)) {
rewind($fh);