Fix php8 compatibility

This commit is contained in:
ptibogxiv 2022-06-12 14:41:06 +02:00 committed by GitHub
parent 00446a10d7
commit 7d35e94fc5
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]:null).'">';
} 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]:null).'">';
}
}
}