diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |