summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_admin.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-29 15:40:15 -0400
committerjim-p <jimp@pfsense.org>2010-06-29 15:40:15 -0400
commit09ba7f74c35c399c46f44cd95d509e5bb6703803 (patch)
tree556def9df36e1e1fbd42c14d28abeead1e80ef75 /usr/local/www/system_advanced_admin.php
parentb11bd589692d1958973b761b50929f2adb2eaad2 (diff)
downloadpfsense-09ba7f74c35c399c46f44cd95d509e5bb6703803.zip
pfsense-09ba7f74c35c399c46f44cd95d509e5bb6703803.tar.gz
Fix this test, properly test if a variable is set. Fixes #691
Diffstat (limited to 'usr/local/www/system_advanced_admin.php')
-rw-r--r--usr/local/www/system_advanced_admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index 31a658c..840d6bf 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -132,7 +132,7 @@ if ($_POST) {
else
unset($config['system']['enablesshd']);
- $sshd_keyonly = $config['system']['sshdkeyonly'];
+ $sshd_keyonly = isset($config['system']['sshdkeyonly']);
if ($_POST['sshdkeyonly'])
$config['system']['sshdkeyonly'] = true;
else
OpenPOWER on IntegriCloud