Commit 5c49698b authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(usermanager) issue with defaults, closes https://github.com/opnsense/core/issues/612

(cherry picked from commit 99206e99)
parent bbba2518
......@@ -145,7 +145,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig['lifetime'] = 365;
$pconfig['usernamefld'] = null;
foreach ($fieldnames as $fieldname) {
if (isset($pconfig[$fieldname])) {
if (!isset($pconfig[$fieldname])) {
$pconfig[$fieldname] = 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