6
Quote:
may i know what cause the problem ?
There was a bug: during installation, the system was checking only the first three "official" groups:
$groups = array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS);
To fix it, we had to retrieve all groups via:
$groupHandler = xoops_getHandler('group');
$groups = $groupHandler->getObjects();
keeping in mind that the assignment of $mygroups had to change, and instead of the original:
foreach ($groups as $mygroup) {
we had to now use objects in our "foreach" loop:
foreach (array_keys($groups) as $i) {
$mygroup = $groups[$i]->getVar('groupid');
When I find time, I'll try to add an "update" routine, to fix the existing installations. For now, for testing, just install as a new module.