summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it.class b/it.class
index a4231bb..6d021a0 100644
--- a/it.class
+++ b/it.class
@@ -215,7 +215,8 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate
error_log("it::error: " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url " . (EDC('verbose') ? D($p['locals']) : ""));
}
- if (($fh = fopen("/tmp/alertdata/alert.log", "a"))) {
+ if (($fh = fopen("/tmp/alertdata/alert.log", "a")))
+ {
fputs($fh, $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url\n");
fclose($fh);
@chmod("/tmp/alertdata/alert.log", 0777);