diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-17 01:45:56 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-17 01:45:56 -0400 |
commit | 8273ea35b1cb35d1cd4b674276fca1ace774c270 (patch) | |
tree | 46953c463e3f1ea584333b420bd3508e2e900b37 /etc/inc/notices.inc | |
parent | 5ac70f131413c89c490d77507390f81cf583a5a2 (diff) | |
download | pfsense-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.inc | 4 |
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; |