diff options
-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); |