diff --git a/include/functions.php b/include/functions.php index 18089a07..30df5f63 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3736,13 +3736,13 @@ function get_username($id, $big = false, $link = true, $bold = true, $target = f //medal $medalHtml = ''; foreach ($arr['wearing_medals'] as $medal) { - $medalHtml .= sprintf('', $medal['image_large'], $medal['name']); + $medalHtml .= sprintf('', $medal['image_large'], $medal['name']); } $href = getSchemeAndHttpHost() . "/userdetails.php?id=$id"; $username = ($link == true ? "" . $username . "" : $username) . $pics . ($withtitle == true ? " (" . ($arr['title'] == "" ? get_user_class_name($arr['class'],false,true,true) : "".htmlspecialchars($arr['title'])) . ")" : ""); - $username = "$medalHtml" . ( $bracket == true ? "(" . $username . ")" : $username) . ""; + $username = "" . ( $bracket == true ? "(" . $username . ")" : $username) . "$medalHtml"; } else {