summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2012-10-15 10:33:40 +0000
committerUrban Müller2012-10-15 10:33:40 +0000
commit532acea0733f1f9f7acd6d373030494da37815d9 (patch)
tree491210e5ce900fa12f823272c38602b5a6285f1f
parent90cf156efacfbe84808cca243b1b2a955f6c4f10 (diff)
downloaditools-532acea0733f1f9f7acd6d373030494da37815d9.tar.gz
itools-532acea0733f1f9f7acd6d373030494da37815d9.tar.bz2
itools-532acea0733f1f9f7acd6d373030494da37815d9.zip
return true if mail was sent
-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;
}