Commit 0327622c authored by Ad Schellevis's avatar Ad Schellevis

(crashreport) missing type check, referenced https://github.com/opnsense/core/issues/1393

parent eacf920f
......@@ -361,7 +361,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$ph1ent[$fieldname] = $pconfig[$fieldname];
}
}
$ph1ent['authservers'] = implode(',', $pconfig['authservers']);
if (!empty($pconfig['authservers'])) {
$ph1ent['authservers'] = implode(',', $pconfig['authservers']);
}
$ph1ent['disabled'] = !empty($pconfig['disabled']) ? true : false;
$ph1ent['private-key'] =isset($pconfig['privatekey']) ? base64_encode($pconfig['privatekey']) : null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment