plugins/SpecialGroups.php
changeset 573 43e7254afdb4
parent 564 a1c450a911a6
child 590 03a60844c7c5
equal deleted inserted replaced
572:c196e8f336b9 573:43e7254afdb4
   222           $r = $db->fetchrow();
   222           $r = $db->fetchrow();
   223           $members[] = $r;
   223           $members[] = $r;
   224           $db->free_result();
   224           $db->free_result();
   225           
   225           
   226           // just added a user to the group, so regenerate the ranks cache
   226           // just added a user to the group, so regenerate the ranks cache
   227           generate_ranks_cache();
   227           generate_cache_userranks();
   228           
   228           
   229           break;
   229           break;
   230         case 'del_users':
   230         case 'del_users':
   231           foreach ( $members as $i => $member )
   231           foreach ( $members as $i => $member )
   232           {
   232           {
   237                 $db->_die('SpecialGroups.php, line ' . __LINE__);
   237                 $db->_die('SpecialGroups.php, line ' . __LINE__);
   238               unset($members[$i]);
   238               unset($members[$i]);
   239             }
   239             }
   240           }
   240           }
   241           // regenerate the ranks cache
   241           // regenerate the ranks cache
   242           generate_ranks_cache();
   242           generate_cache_userranks();
   243           
   243           
   244           break;
   244           break;
   245         case 'pending':
   245         case 'pending':
   246           foreach ( $pending as $i => $member )
   246           foreach ( $pending as $i => $member )
   247           {
   247           {
   264                 unset($pending[$i]);
   264                 unset($pending[$i]);
   265               }
   265               }
   266             }
   266             }
   267           }
   267           }
   268           // memberships updated/changed, regenerate ranks cache
   268           // memberships updated/changed, regenerate ranks cache
   269           generate_ranks_cache();
   269           generate_cache_userranks();
   270           
   270           
   271           echo '<div class="info-box">' . $lang->get('groupcp_msg_pending_updated') . '</div>';
   271           echo '<div class="info-box">' . $lang->get('groupcp_msg_pending_updated') . '</div>';
   272           break;
   272           break;
   273       }
   273       }
   274     }
   274     }