From 532acea0733f1f9f7acd6d373030494da37815d9 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 15 Oct 2012 10:33:40 +0000 Subject: return true if mail was sent --- it.class | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 0472b65..f3ef89a 100644 --- a/it.class +++ b/it.class @@ -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; } -- cgit v1.2.3