plugins/SpecialGroups.php
changeset 541 acb7e23b6ffa
parent 536 218a627eb53e
child 564 a1c450a911a6
--- a/plugins/SpecialGroups.php	Sat Apr 26 17:25:28 2008 -0400
+++ b/plugins/SpecialGroups.php	Sun May 04 21:57:48 2008 -0400
@@ -223,6 +223,9 @@
           $members[] = $r;
           $db->free_result();
           
+          // just added a user to the group, so regenerate the ranks cache
+          generate_ranks_cache();
+          
           break;
         case 'del_users':
           foreach ( $members as $i => $member )
@@ -235,6 +238,9 @@
               unset($members[$i]);
             }
           }
+          // regenerate the ranks cache
+          generate_ranks_cache();
+          
           break;
         case 'pending':
           foreach ( $pending as $i => $member )
@@ -259,6 +265,9 @@
               }
             }
           }
+          // memberships updated/changed, regenerate ranks cache
+          generate_ranks_cache();
+          
           echo '<div class="info-box">' . $lang->get('groupcp_msg_pending_updated') . '</div>';
           break;
       }