diff --git a/include/functions.php b/include/functions.php index e4d902d0..7499bea3 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3711,7 +3711,7 @@ function get_username($id, $big = false, $link = true, $bold = true, $target = f //medal $medalHtml = ''; - foreach ($arr['wearing_medals'] as $medal) { + foreach ($arr['wearing_medals'] ?? [] as $medal) { $medalHtml .= sprintf( '', $medal['image_large'], $medal['name'], $medalClass, $medalSize, $medalSize, $marginLeft