Correct a PHP error when saving on system_advanced_admin.php. Fixes #8606

This commit is contained in:
jim-p 2018-06-28 10:50:49 -04:00
parent f031765bb0
commit 8038c4e807

View File

@ -251,9 +251,9 @@ if ($_POST) {
$sshd_keyonly = $config['system']['sshd']['sshdkeyonly'];
if ($_POST['sshdkeyonly'] == "enabled") {
$config['system']['sshd']['sshdkeyonly'] = "enabled";
} else if ($_POST['sshdkeyonly'] == "both") {
} elseif ($_POST['sshdkeyonly'] == "both") {
$config['system']['sshd']['sshdkeyonly'] = "both";
} else {
} elseif (is_array($config['system']['sshd']) && isset($config['system']['sshd']['sshdkeyonly'])) {
unset($config['system']['sshd']['sshdkeyonly']);
}