From 0c0725455c4c965b8eafeb7dad0453b7cd0e4ac0 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 4 Dec 2011 10:02:54 +0100 Subject: [PATCH] @ character before fopen added to avoid annoing log lines --- web/Obj/brisk.phh | 4 ++-- web/Obj/proxyscan.phh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 6da86a8..8b82a48 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -292,7 +292,7 @@ function mop_flush() function file_lock($fname, $is_exclusive) { - if (($res = fopen($fname, "r+")) == FALSE) { + if (($res = @fopen($fname, "r+")) == FALSE) { return (FALSE); } @@ -886,7 +886,7 @@ class User { if (validate_sess($this->sess)) { if (file_exists(PROXY_PATH) == FALSE) mkdir(PROXY_PATH, 0775, TRUE); - $fp = fopen(PROXY_PATH."/".$this->sess.".stat", 'w'); + $fp = @fopen(PROXY_PATH."/".$this->sess.".stat", 'w'); fwrite($fp, sprintf("%s\n",$this->stat)); fclose($fp); } diff --git a/web/Obj/proxyscan.phh b/web/Obj/proxyscan.phh index ea704c3..c458926 100644 --- a/web/Obj/proxyscan.phh +++ b/web/Obj/proxyscan.phh @@ -200,4 +200,4 @@ function is_proxy() return (FALSE); } -?> \ No newline at end of file +?> -- 2.17.1