mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
fix get_user_name without werarning medal
This commit is contained in:
@@ -3711,7 +3711,7 @@ function get_username($id, $big = false, $link = true, $bold = true, $target = f
|
|||||||
|
|
||||||
//medal
|
//medal
|
||||||
$medalHtml = '';
|
$medalHtml = '';
|
||||||
foreach ($arr['wearing_medals'] as $medal) {
|
foreach ($arr['wearing_medals'] ?? [] as $medal) {
|
||||||
$medalHtml .= sprintf(
|
$medalHtml .= sprintf(
|
||||||
'<img src="%s" title="%s" class="%s preview" style="max-height: %s;max-width: %s;margin-left: %s"/>',
|
'<img src="%s" title="%s" class="%s preview" style="max-height: %s;max-width: %s;margin-left: %s"/>',
|
||||||
$medal['image_large'], $medal['name'], $medalClass, $medalSize, $medalSize, $marginLeft
|
$medal['image_large'], $medal['name'], $medalClass, $medalSize, $medalSize, $marginLeft
|
||||||
|
|||||||
Reference in New Issue
Block a user