From ad34103f7af9fb3b1a6830b891aa74a7663960eb Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 27 Jun 2018 14:52:42 +0200 Subject: support muting of alerts --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 8b443dc..ce42027 100644 --- a/it.class +++ b/it.class @@ -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); -- cgit v1.2.3