diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -122,6 +122,7 @@ static function timerlog($label = '') * @param $p['blockmail'] number of seconds to block mails after having sent a mail [3600] * @param $p['blockmailid'] block mail for $p['blockmail'] seconds with same id. Default: $p['to'] * @param $p['omitdebuginfo'] Do not add stack dump, locals and environment to output [false] + * @return true if a mail was sent */ static function error($p = array(), $body = null, $to = null) # $body and $to deprecated { @@ -235,7 +236,9 @@ static function error($p = array(), $body = null, $to = null) # $body and $to de error_log("it::error: " . $p['title'] . " Url: $url"); file_put_contents("/tmp/alertdata/alert.log", it::date() . " " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']} Url: $url") . "\n", FILE_APPEND); - @chmod("/tmp/alertdata/alert.log", 0777); + @chmod("/tmp/alertdata/alert.log", 0777); + + return $sendmail; } |