diff options
author | Urban Müller | 2018-06-27 14:52:42 +0200 |
---|---|---|
committer | Urban Müller | 2018-06-27 14:52:42 +0200 |
commit | ad34103f7af9fb3b1a6830b891aa74a7663960eb (patch) | |
tree | 03dd3a6c9c4361d6568d5e8368ec8769570b0722 | |
parent | 99b7fc8dc08da090bb7f00c2882e1daeec4434ba (diff) | |
download | itools-ad34103f7af9fb3b1a6830b891aa74a7663960eb.tar.gz itools-ad34103f7af9fb3b1a6830b891aa74a7663960eb.tar.bz2 itools-ad34103f7af9fb3b1a6830b891aa74a7663960eb.zip |
support muting of alerts
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -225,7 +225,7 @@ 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) + if ($sendmail && !it_cache::get('it_error_mute_' . $GLOBALS['ULTRASITE'], [ 'distributed' => true ])) { @unlink($lastsentfn); @touch($lastsentfn); |