includes/sessions.php
changeset 1271 77accbee98f5
parent 1266 f3933b355229
child 1292 0e2e476e90e8
--- a/includes/sessions.php	Thu Jul 29 12:25:14 2010 -0400
+++ b/includes/sessions.php	Thu Jul 29 19:30:11 2010 -0400
@@ -2527,7 +2527,7 @@
 	 			. "  LEFT JOIN " . table_prefix . "groups AS g\n"
 	 			. "    ON ( g.group_id = u.user_group )\n"
 	 			. "  LEFT JOIN " . table_prefix . "group_members AS m\n"
-	 			. "    ON ( u.user_id = m.user_id )\n"
+	 			. "    ON ( u.user_id = m.user_id AND m.pending < 1 )\n"
 	 			. "  LEFT JOIN " . table_prefix . "ranks AS ru\n"
 	 			. "    ON ( u.user_rank = ru.rank_id )\n"
 	 			. "  LEFT JOIN " . table_prefix . "ranks AS rg\n"