From: Matteo Nastasi (mop) Date: Sun, 4 Dec 2011 09:02:54 +0000 (+0100) Subject: @ character before fopen added to avoid annoing log lines X-Git-Tag: 3.6.2~1 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=0c0725455c4c965b8eafeb7dad0453b7cd0e4ac0;p=brisk.git @ character before fopen added to avoid annoing log lines --- 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 +?>