@ character before fopen added to avoid annoing log lines
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Sun, 4 Dec 2011 09:02:54 +0000 (10:02 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Sun, 4 Dec 2011 09:02:54 +0000 (10:02 +0100)
web/Obj/brisk.phh
web/Obj/proxyscan.phh

index 6da86a8..8b82a48 100644 (file)
@@ -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);
     }
index ea704c3..c458926 100644 (file)
@@ -200,4 +200,4 @@ function is_proxy()
     return (FALSE);
 }
 
-?>
\ No newline at end of file
+?>