Merge pull request #21221 from ptibogxiv/patch-18

Fix php8 compatibility
This commit is contained in:
Laurent Destailleur 2022-06-12 18:40:41 +02:00 committed by GitHub
commit 2704f9c10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2505,7 +2505,7 @@ if ($action == 'create' || $action == 'adduserldap') {
print '<span class="fa '.$value['icon'].' pictofixedwidth"></span>';
}
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]:'').'">';
} else {
print '<input type="hidden" name="'.$key.'" value="'.$object->socialnetworks[$key].'">';
print $object->socialnetworks[$key];
@ -2513,7 +2513,7 @@ if ($action == 'create' || $action == 'adduserldap') {
print '</td></tr>';
} else {
// 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]:'').'">';
}
}
}