Pending group memberships no longer alter result in rank alterations
authorDan
Thu, 29 Jul 2010 19:30:11 -0400
changeset 1271 77accbee98f5
parent 1270 bd3ee7f12bc1
child 1272 05b7645f12e6
Pending group memberships no longer alter result in rank alterations
includes/sessions.php
--- 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"