summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2018-06-28 01:46:06 +0200
committerUrban Müller2018-06-28 01:47:14 +0200
commitc652e5a2ebbe5ed589d637301f3f26383e485bc4 (patch)
tree8559f5ff230e247941e22e044b5836d54403b542
parent7401dca94495254ba1072db8fb80d660af7ba45e (diff)
downloaditools-c652e5a2ebbe5ed589d637301f3f26383e485bc4.tar.gz
itools-c652e5a2ebbe5ed589d637301f3f26383e485bc4.tar.bz2
itools-c652e5a2ebbe5ed589d637301f3f26383e485bc4.zip
fix mute mode
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index 01fe916..8725f3b 100644
--- a/it.class
+++ b/it.class
@@ -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);