summaryrefslogtreecommitdiffstats
path: root/etc/inc/notices.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-17 01:45:56 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-17 01:45:56 -0400
commit8273ea35b1cb35d1cd4b674276fca1ace774c270 (patch)
tree46953c463e3f1ea584333b420bd3508e2e900b37 /etc/inc/notices.inc
parent5ac70f131413c89c490d77507390f81cf583a5a2 (diff)
downloadpfsense-8273ea35b1cb35d1cd4b674276fca1ace774c270.zip
pfsense-8273ea35b1cb35d1cd4b674276fca1ace774c270.tar.gz
Do not attempt to send notices when booting
Diffstat (limited to 'etc/inc/notices.inc')
-rw-r--r--etc/inc/notices.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc
index cb72961..26130be 100644
--- a/etc/inc/notices.inc
+++ b/etc/inc/notices.inc
@@ -261,7 +261,9 @@ function are_notices_pending($category = "all") {
* returns true if message was sent
******/
function notify_via_smtp($message) {
- global $config;
+ global $config, $g;
+ if($g['booting'])
+ return;
if(!$config['notifications']['smtp']['ipaddress'])
return;
OpenPOWER on IntegriCloud