It is in PHP code. Exactly in method:
getDetailsAssoc in lib/eventum/class.user.php
this piece of code (starts line 700):
foreach ($res as $usr_id => &$row) {
// FIXME: maybe PEAR has some "fill NULL" mode?
if (!isset($row['usr_grp_id'])) { $row['usr_grp_id'] = null;
}
$row['group'] = Group::getName($row['usr_grp_id']); //-------------------------------------------------------- //here is the bug $roles = Project::getAssocList($usr_id, false, true); $row['projects'] = array_keys($roles); $row['roles'] = $roles;
}
Should be replaced with:
foreach ($res as &$row) {
// FIXME: maybe PEAR has some "fill NULL" mode?
if (!isset($row['usr_grp_id'])) { $row['usr_grp_id'] = null;
}
$row['group'] = Group::getName($row['usr_grp_id']); //and now it is fixed!!!!!!!!!!!!!!! $roles = Project::getAssocList($row['usr_id'], false, true); $row['projects'] = array_keys($roles); $row['roles'] = $roles;
}
Sam situation here.
Problem is not HTML nor borwser.
It is in PHP code. Exactly in method: class.user. php
getDetailsAssoc in lib/eventum/
this piece of code (starts line 700): $row['usr_ grp_id' ])) {
$ row['usr_ grp_id' ] = null;
foreach ($res as $usr_id => &$row) {
// FIXME: maybe PEAR has some "fill NULL" mode?
if (!isset(
}
}
Should be replaced with: $row['usr_ grp_id' ])) {
$ row['usr_ grp_id' ] = null;
foreach ($res as &$row) {
// FIXME: maybe PEAR has some "fill NULL" mode?
if (!isset(
}
}
$res array has wrong indexes.
Hope this helps.