summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class5
1 files changed, 4 insertions, 1 deletions
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;
}