mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Avoid PHP warning if no server selected
when saving a client specific override. Forum report https://forum.pfsense.org/index.php?topic=109431.msg0 Redmine issue 6089
This commit is contained in:
parent
7b3b231488
commit
3685bec253
@ -240,7 +240,11 @@ if ($_POST) {
|
||||
if (!$input_errors) {
|
||||
$csc = array();
|
||||
|
||||
$csc['server_list'] = implode(",", $pconfig['server_list']);
|
||||
if (is_array($pconfig['server_list'])) {
|
||||
$csc['server_list'] = implode(",", $pconfig['server_list']);
|
||||
} else {
|
||||
$csc['server_list'] = "";
|
||||
}
|
||||
$csc['custom_options'] = $pconfig['custom_options'];
|
||||
if ($_POST['disable'] == "yes") {
|
||||
$csc['disable'] = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user