summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_advanced_notifications.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php
index abbaafc..6f2a55c 100644
--- a/usr/local/www/system_advanced_notifications.php
+++ b/usr/local/www/system_advanced_notifications.php
@@ -36,15 +36,10 @@
require("guiconfig.inc");
-if (!is_array($config['notifications']['growls']))
- $config['notifications']['growl'] = array();
-
-$a_tunable = &$config['notifications']['growl'];
-
-if($a_tunable['password'])
- $pconfig['password'] = $a_tunable['password'];
-if($a_tunable['ipaddress'])
- $pconfig['ipaddress'] = $a_tunable['ipaddress'];
+if($config['notifications']['growl']['password'])
+ $pconfig['password'] = $config['notifications']['growl']['password'];
+if($config['notifications']['growl']['ipaddress'])
+ $pconfig['ipaddress'] = $config['notifications']['growl']['ipaddress'];
if ($_POST) {
OpenPOWER on IntegriCloud