diff options
-rw-r--r-- | it.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |