diff options
author | Christian A. Weber | 2014-06-24 14:34:40 +0200 |
---|---|---|
committer | Christian A. Weber | 2014-06-24 14:34:40 +0200 |
commit | c3044c1d849427028e087a9ec4ef847d732462c6 (patch) | |
tree | d3bc62d964749f07fef70af136bc494e43a3d897 /it.class | |
parent | 16c00ff270f8410c8f2a8697b87f4d2902121e92 (diff) | |
download | itools-c3044c1d849427028e087a9ec4ef847d732462c6.tar.gz itools-c3044c1d849427028e087a9ec4ef847d732462c6.tar.bz2 itools-c3044c1d849427028e087a9ec4ef847d732462c6.zip |
it::error() always returns null
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; } |