summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian A. Weber2014-06-24 14:34:40 +0200
committerChristian A. Weber2014-06-24 14:34:40 +0200
commitc3044c1d849427028e087a9ec4ef847d732462c6 (patch)
treed3bc62d964749f07fef70af136bc494e43a3d897 /it.class
parent16c00ff270f8410c8f2a8697b87f4d2902121e92 (diff)
downloaditools-c3044c1d849427028e087a9ec4ef847d732462c6.tar.gz
itools-c3044c1d849427028e087a9ec4ef847d732462c6.tar.bz2
itools-c3044c1d849427028e087a9ec4ef847d732462c6.zip
it::error() always returns null
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index 90fa5a8..b8e22a6 100644
--- a/it.class
+++ b/it.class
@@ -123,7 +123,7 @@ static function timerlog($label = '')
* @param $p['okstate'] give current ok label and ok state, e.g. telresult=1 for working. see failcount
* @param $p['failcount'] give number of consecutive okstate failures needed for creating an error [2]
* @param $p['omitdebuginfo'] value 1 omits long stack and var dumps, value 2 also omits trace and url
- * @return true if a mail was sent
+ * @return always null (so users can return it::error() in error cases)
*/
static function error($p = array())
{
@@ -249,7 +249,7 @@ static function error($p = array())
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);
- return $sendmail;
+ return null;
}