From 60722d84a84f2533f5b92b3afe9169398aa955da Mon Sep 17 00:00:00 2001 From: Anthony Calandra Date: Thu, 24 Jul 2014 21:28:23 -0400 Subject: [PATCH] Made code more clear to understand. --- Sources/Load.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Load.php b/Sources/Load.php index 37d8310..0418aa9 100644 --- a/Sources/Load.php +++ b/Sources/Load.php @@ -1139,7 +1139,8 @@ function loadMemberContext($user, $display_custom_fields = false) $stars = explode(';', $profile['stars']); $star = explode('#', $stars[0]); $group_stars = str_repeat('*', empty($star[0]) || empty($star[1]) ? 0 : $star[0]); - $badges = array_shift($stars); + // Remove first element in $stars to get the badges. + array_shift($stars); if (count($stars) > 0) { $group_stars .= '
  • '; $count = 0;