From 190a6f20c45ab0e9452ef1a3795cf12fd7df2cdc Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Mon, 10 Feb 2014 00:27:47 -0600 Subject: [PATCH] Only select extra stars if they aren't empty --- Sources/Load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Load.php b/Sources/Load.php index fa5bcd5..6f7a3a1 100644 --- a/Sources/Load.php +++ b/Sources/Load.php @@ -1018,7 +1018,7 @@ function loadMemberData($users, $is_name = false, $set = 'normal') SELECT mem.id_member, mg.stars FROM {db_prefix}membergroups AS mg, {db_prefix}members AS mem WHERE (FIND_IN_SET(mg.id_group, mem.additional_groups) OR ( mg.id_group=mem.id_post_group AND mem.id_group != 0 )) - AND mg.showAddBadge=1 + AND mg.showAddBadge=1 AND mg.stars != \'\' AND id_member' . (count($new_loaded_ids) == 1 ? ' = {int:loaded_ids}' : ' IN ({array_int:loaded_ids})'), array( 'loaded_ids' => count($new_loaded_ids) == 1 ? $new_loaded_ids[0] : $new_loaded_ids,