Fix small bug with award mod when no ids were loaded

This commit is contained in:
Travis Burtrum 2014-02-20 23:51:26 -05:00
parent 7237788bb6
commit 737fa75941

View File

@ -1014,6 +1014,7 @@ function loadMemberData($users, $is_name = false, $set = 'normal')
$smcFunc['db_free_result']($request); $smcFunc['db_free_result']($request);
// xxx Load the member's awards. // xxx Load the member's awards.
if (!empty($new_loaded_ids)) {
$request = $smcFunc['db_query']('', ' $request = $smcFunc['db_query']('', '
SELECT mem.id_member, mg.stars SELECT mem.id_member, mg.stars
FROM {db_prefix}membergroups AS mg, {db_prefix}members AS mem 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']; $user_profile[$row['id_member']]['stars'] .= ';'.$row['stars'];
} }
$smcFunc['db_free_result']($request); $smcFunc['db_free_result']($request);
}
// xxx end Load the member's awards. // xxx end Load the member's awards.
} }