mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
FormStoredPassword: check for null
This commit is contained in:
parent
e27cda645d
commit
ff57ec5c77
@ -37,9 +37,9 @@ class Zend_View_Helper_FormStoredPassword extends Zend_View_Helper_FormElement
|
||||
'value' => 'y'
|
||||
]));
|
||||
|
||||
if (\strlen($sentValue)) {
|
||||
if ($sentValue !== null && \strlen($sentValue)) {
|
||||
$el->getAttributes()->set('value', $sentValue);
|
||||
} elseif (\strlen($value) > 0) {
|
||||
} elseif ($value !== null && \strlen($value) > 0) {
|
||||
$el->getAttributes()->set('value', '__UNCHANGED_VALUE__');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user