diff options
author | Urban Müller | 2012-10-15 10:33:40 +0000 |
---|---|---|
committer | Urban Müller | 2012-10-15 10:33:40 +0000 |
commit | 532acea0733f1f9f7acd6d373030494da37815d9 (patch) | |
tree | 491210e5ce900fa12f823272c38602b5a6285f1f /it.class | |
parent | 90cf156efacfbe84808cca243b1b2a955f6c4f10 (diff) | |
download | itools-532acea0733f1f9f7acd6d373030494da37815d9.tar.gz itools-532acea0733f1f9f7acd6d373030494da37815d9.tar.bz2 itools-532acea0733f1f9f7acd6d373030494da37815d9.zip |
return true if mail was sent
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; } |