summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-15 09:37:47 -0200
committerRenato Botelho <renato@netgate.com>2016-01-15 09:37:47 -0200
commitacc9c73e5332f3d8bc9b836b7b65aefa16e8937f (patch)
tree7c3f0fe15306332951cc92ae466f2520ac223ffd /src/etc
parentd3edee8a7425ef7fae36b7ad0700a1aa57698f08 (diff)
downloadpfsense-acc9c73e5332f3d8bc9b836b7b65aefa16e8937f.zip
pfsense-acc9c73e5332f3d8bc9b836b7b65aefa16e8937f.tar.gz
Respect force parameter even if message is the same of last sent
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/notices.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/notices.inc b/src/etc/inc/notices.inc
index 92f74a1..6224813 100644
--- a/src/etc/inc/notices.inc
+++ b/src/etc/inc/notices.inc
@@ -297,8 +297,8 @@ function notify_via_smtp($message, $force = false) {
return;
}
- /* Do NOT send the same message twice */
- if (file_exists("/var/db/notices_lastmsg.txt")) {
+ /* Do NOT send the same message twice, except if $force is true */
+ if (!$force && file_exists("/var/db/notices_lastmsg.txt")) {
$lastmsg = trim(file_get_contents("/var/db/notices_lastmsg.txt"));
if ($lastmsg == $message) {
return;
OpenPOWER on IntegriCloud