From 575836eb24be7ddbbb2d03e5c5de95f1a6b9c81e Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 12 Jan 2015 22:24:08 +0100 Subject: disable PHP warning when fopen fails Signed-off-by: Olivier Gayot --- PHP_DW.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PHP_DW.php') 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); -- cgit v1.2.3