summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-09 19:15:07 -0400
committerScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-09 19:15:07 -0400
commit35b6111233952f38ec771570bdf8f08bbe7d1787 (patch)
tree8c1e6104ea4565e23275ca7740c17f32579d6463 /etc/inc/pfsense-utils.inc
parentd375e74a6a3bc359dea72d0239bbd46a7142304e (diff)
downloadpfsense-35b6111233952f38ec771570bdf8f08bbe7d1787.zip
pfsense-35b6111233952f38ec771570bdf8f08bbe7d1787.tar.gz
Only invoke growl functions when an ip address is defined.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index ad3c1a0..2f9e875 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1680,9 +1680,11 @@ function notify_via_growl($message) {
$growl_settings = &$config['notifications']['growl'];
$growl_ip = $growl_settings['ipaddress'];
$growl_password = $growl_settings['password'];
- $growl = new Growl($growl_ip, $growl_password);
- $growl->register();
- $growl->notify("pfSense growl alert", "", "{$message}", 1);
+ if($growl_ip) {
+ $growl = new Growl($growl_ip, $growl_password);
+ $growl->register();
+ $growl->notify("pfSense growl alert", "", "{$message}", 1);
+ }
return true; // XXX: check for error?
}
OpenPOWER on IntegriCloud