summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_notifications.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-09 21:14:27 -0400
committerScott Ullrich <sullrich@pfsense.homeunix.net>2009-07-09 21:14:27 -0400
commit66184513bc1e0abeea7f8404e69b2db1748300b1 (patch)
treee93d9aa2eb54cf833a1236fa95f75e17d0b7d080 /usr/local/www/system_advanced_notifications.php
parent67ffb407e006a94e55069a9b4704f99d0a284863 (diff)
downloadpfsense-66184513bc1e0abeea7f8404e69b2db1748300b1.zip
pfsense-66184513bc1e0abeea7f8404e69b2db1748300b1.tar.gz
Restore form values correctly... really.
Diffstat (limited to 'usr/local/www/system_advanced_notifications.php')
-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