Fix php8 compatibility
This commit is contained in:
parent
00446a10d7
commit
7d35e94fc5
@ -2505,7 +2505,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|||||||
print '<span class="fa '.$value['icon'].' pictofixedwidth"></span>';
|
print '<span class="fa '.$value['icon'].' pictofixedwidth"></span>';
|
||||||
}
|
}
|
||||||
if ($caneditfield && empty($object->ldap_sid)) {
|
if ($caneditfield && empty($object->ldap_sid)) {
|
||||||
print '<input type="text" name="'.$key.'" class="flat maxwidth200" value="'.$object->socialnetworks[$key].'">';
|
print '<input type="text" name="'.$key.'" class="flat maxwidth200" value="'.(isset($object->socialnetworks[$key])?$object->socialnetworks[$key]:null).'">';
|
||||||
} else {
|
} else {
|
||||||
print '<input type="hidden" name="'.$key.'" value="'.$object->socialnetworks[$key].'">';
|
print '<input type="hidden" name="'.$key.'" value="'.$object->socialnetworks[$key].'">';
|
||||||
print $object->socialnetworks[$key];
|
print $object->socialnetworks[$key];
|
||||||
@ -2513,7 +2513,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
} else {
|
} else {
|
||||||
// if social network is not active but value exist we do not want to loose it
|
// if social network is not active but value exist we do not want to loose it
|
||||||
print '<input type="hidden" name="'.$key.'" value="'.$object->socialnetworks[$key].'">';
|
print '<input type="hidden" name="'.$key.'" value="'.(isset($object->socialnetworks[$key])?$object->socialnetworks[$key]:null).'">';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user