mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not attempt to send notices when booting
This commit is contained in:
parent
5ac70f1314
commit
8273ea35b1
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user