diff options
author | Urban Müller | 2018-06-28 01:46:06 +0200 |
---|---|---|
committer | Urban Müller | 2018-06-28 01:47:14 +0200 |
commit | c652e5a2ebbe5ed589d637301f3f26383e485bc4 (patch) | |
tree | 8559f5ff230e247941e22e044b5836d54403b542 | |
parent | 7401dca94495254ba1072db8fb80d660af7ba45e (diff) | |
download | itools-c652e5a2ebbe5ed589d637301f3f26383e485bc4.tar.gz itools-c652e5a2ebbe5ed589d637301f3f26383e485bc4.tar.bz2 itools-c652e5a2ebbe5ed589d637301f3f26383e485bc4.zip |
fix mute mode
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -228,8 +228,8 @@ static function error($p = array()) { $lastsentfn = "/tmp/alertdata/it_error_mailsent_" . urlencode($p['blockmailid']); clearstatcache(); - $sendmail = time() - max(@filemtime($lastsentfn), it_cache::get($lastsentfn, ['distributed' => true])) > $p['blockmail']; - if ($sendmail && !it_cache::get('it_error_mute_' . $GLOBALS['ULTRASITE'], [ 'distributed' => true ])) + $sendmail = time() - max(@filemtime($lastsentfn), it_cache::get($lastsentfn, ['distributed' => true])) > $p['blockmail'] && !it_cache::get('it_error_mute_' . $GLOBALS['ULTRASITE'], ['distributed' => true]); + if ($sendmail) { @unlink($lastsentfn); @touch($lastsentfn); |