mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSattr_html :: select_list : fix invalid possible values on empty other attribute value
This commit is contained in:
parent
7a02fb0ad4
commit
4715aba0f1
1 changed files with 3 additions and 1 deletions
|
@ -296,7 +296,9 @@ class LSattr_html_select_list extends LSattr_html{
|
|||
if (is_string($attr)) {
|
||||
if (isset($ldapObject->attrs[$attr]) && $ldapObject->attrs[$attr] instanceof LSattribute) {
|
||||
$attr_values = $ldapObject->attrs[$attr]->getValue();
|
||||
if (!is_array($attr_values))
|
||||
if (!$attr_values)
|
||||
$attr_values = array();
|
||||
elseif (!is_array($attr_values))
|
||||
$attr_values = array($attr_values);
|
||||
foreach($attr_values as $attr_value)
|
||||
$retInfos[$attr_value] = __($attr_value);
|
||||
|
|
Loading…
Reference in a new issue