mirror of
https://github.com/moparisthebest/moparscape.org-smf
synced 2025-02-17 15:40:26 -05:00
Made code more clear to understand.
This commit is contained in:
parent
1ea2db96a2
commit
60722d84a8
@ -1139,7 +1139,8 @@ function loadMemberContext($user, $display_custom_fields = false)
|
||||
$stars = explode(';', $profile['stars']);
|
||||
$star = explode('#', $stars[0]);
|
||||
$group_stars = str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($star[1]) ? $settings['images_url'] . '/' . $star[1] : '') . '" alt="*" border="0" />', 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 .= '</li><li><table>';
|
||||
$count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user