Bug #3128 ยป 3128.patch
/administrator/components/com_comprofiler/controller/controller.users.php | ||
---|---|---|
// do not do this otherwise substitutions do not work:
|
||
// CBuser::setUserGetCBUserInstance( $rows[$k] );
|
||
}
|
||
|
||
|
||
// translate usergroups for j1.6+
|
||
if ( checkJversion() == 2 ) {
|
||
foreach ( $rows as $row ) {
|
||
$groupnames = explode( ', ', $row->groupname );
|
||
|
||
for ( $i = 0, $n = count( $groupnames ); $i < $n; $i++ ) {
|
||
$groupnames[$i] = JText::_( $groupnames[$i] );
|
||
}
|
||
|
||
$row->groupname = implode( ', ', $groupnames );
|
||
}
|
||
}
|
||
|
||
$template = 'SELECT COUNT(s.userid) FROM #__session AS s WHERE s.userid = ';
|
||
$n = count( $rows );
|
||
for ( $i = 0; $i < $n; $i++ ) {
|