2009-07-24, 03:43 PM
I've noticed that in the administration control panel when viewing groups, the # of users in each group is wrong because it wasn't counting any users that had the groups listed as additional groups. I think the problem is in the admin\modules\users\groups.php file in the query:
the !=NULL should be is not null. The query is also in the sqllite case statement I'm guessing it should be changed in that also but I'm using mysql so I couldn't test that one.
Thanks
default:
$query = $db->query("
SELECT g.gid, COUNT(u.uid) AS users
FROM ".TABLE_PREFIX."users u
LEFT JOIN ".TABLE_PREFIX."usergroups g ON (CONCAT(',', u.additionalgroups, ',') LIKE CONCAT('%,', g.gid, ',%'))
WHERE g.gid != '0' AND g.gid != NULL GROUP BY g.gid
the !=NULL should be is not null. The query is also in the sqllite case statement I'm guessing it should be changed in that also but I'm using mysql so I couldn't test that one.
Thanks