mirror of
https://github.com/moparisthebest/moparscape.org-smf
synced 2024-11-24 17:52:21 -05:00
Fix small bug with award mod when no ids were loaded
This commit is contained in:
parent
7237788bb6
commit
737fa75941
@ -1014,6 +1014,7 @@ function loadMemberData($users, $is_name = false, $set = 'normal')
|
||||
$smcFunc['db_free_result']($request);
|
||||
|
||||
// xxx Load the member's awards.
|
||||
if (!empty($new_loaded_ids)) {
|
||||
$request = $smcFunc['db_query']('', '
|
||||
SELECT mem.id_member, mg.stars
|
||||
FROM {db_prefix}membergroups AS mg, {db_prefix}members AS mem
|
||||
@ -1030,6 +1031,7 @@ function loadMemberData($users, $is_name = false, $set = 'normal')
|
||||
$user_profile[$row['id_member']]['stars'] .= ';'.$row['stars'];
|
||||
}
|
||||
$smcFunc['db_free_result']($request);
|
||||
}
|
||||
// xxx end Load the member's awards.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user