mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-20 23:43:49 +01:00
LSattr_html :: select_list : fix warning on empty jsonCompositeAttribute possible values
This commit is contained in:
parent
5027792342
commit
788bc23b98
1 changed files with 3 additions and 1 deletions
|
@ -310,7 +310,9 @@ class LSattr_html_select_list extends LSattr_html{
|
|||
if (isset($attr['json_component_key'])) {
|
||||
if (get_class($ldapObject->attrs[$attr['attr']]->html) == 'LSattr_html_jsonCompositeAttribute') {
|
||||
$attr_values = $ldapObject->attrs[$attr['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) {
|
||||
$value_data = @json_decode($attr_value, true);
|
||||
|
|
Loading…
Reference in a new issue