7
In the file /modules/system/admin/groups/main.php on or about line 223 you should find the following lines of code (the formatting may be different):
if ($groupid == XOOPS_GROUP_ADMIN) {
if ($member_handler->getUserCountByGroup($groupid) <= count($uids)){
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_ADMINNO);
}
} else {
Try changing this to:
if (($groupid == XOOPS_GROUP_ADMIN) && ($member_handler->getUserCountByGroup($groupid) <= count($uids))){
redirect_header('admin.php?fct=groups&op=modify&g_id='.$groupid.'&memstart='.$memstart,0,_AM_ADMINNO);
} else {
This should fix the problem.
What happened was, that if you were deleting a user from the admin group, it checked to ensure it was not the last admin user. If it was the last admin user it would displaying an error and redirect the page (as it should). If it wasn't the last user, however, it simply did nothing as the rest of the code was only run if it was
not in the admin group.
Anyway. I hope this helps.