From 8273ea35b1cb35d1cd4b674276fca1ace774c270 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 17 Oct 2009 01:45:56 -0400 Subject: [PATCH] Do not attempt to send notices when booting --- etc/inc/notices.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index cb72961fb8..26130be3ae 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;