#12366 fix for spaces on users

This commit is contained in:
Jonathan 2024-01-08 10:57:32 +01:00
parent 065b096f14
commit 706426471e
1 changed files with 4 additions and 5 deletions

View File

@ -780,8 +780,9 @@ foreach ($info as $user_id => $user_info) {
$data[4] .= '<div class="flex-column-start">';
foreach ($user_profiles as $row) {
$total_profile++;
if ($total_profile > 5) {
$data[4] .= "<div class='invisible checkhide_".$row['id_usuario']."'>";
$data[4] .= "<div class='invisible checkhide_".str_replace(' ', '_', io_safe_output($row['id_usuario']))."'>";
}
$data[4] .= "<div class='float-left'>";
@ -794,8 +795,8 @@ foreach ($info as $user_id => $user_info) {
$data[4] .= '</div>';
}
if ($total_profile == 0 && count($user_profiles) > 5) {
$data[4] .= '<span class="show-profiles" onclick="showGroups(`'.$row['id_usuario'].'`)">'.html_print_image(
if ($total_profile == 1 && count($user_profiles) > 5) {
$data[4] .= '<span class="show-profiles" onclick="showGroups(`'.str_replace(' ', '_', io_safe_output($row['id_usuario'])).'`)">'.html_print_image(
'images/zoom.png',
true,
[
@ -810,8 +811,6 @@ foreach ($info as $user_id => $user_info) {
true
);
}
$total_profile++;
}
if (isset($user_info['not_delete']) === true) {