Do not attempt to send notices when booting

This commit is contained in:
Scott Ullrich 2009-10-17 01:45:56 -04:00
parent 5ac70f1314
commit 8273ea35b1

View File

@ -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;