Skip to content

Commit 231be03

Browse files
committed
send mail alert each hour instead of each day
1 parent b1b2d8c commit 231be03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function alert(){
103103
throw new Exception('alert not configured');
104104
}
105105
if (file_exists($this->getAlertFilePath())){
106-
if (date('d', filemtime($this->getAlertFilePath())) != date('d')){
106+
if (date('H', filemtime($this->getAlertFilePath())) != date('H')){
107107
unlink($this->getAlertFilePath());
108108
}else{
109109
return;

0 commit comments

Comments
 (0)