Bug #3675 ยป cb.lists.patch
administrator/components/com_comprofiler/library/cb/cb.lists.php | ||
---|---|---|
}
|
||
$_CB_database->setQuery( $query, (int) $limitstart, (int) $limit );
|
||
$users = $_CB_database->loadObjectList( null, 'moscomprofilerUser', array( &$_CB_database ) );
|
||
foreach ( $users as $k => $v ) {
|
||
if ( $users ) foreach ( $users as $k => $v ) {
|
||
$users[$k]->afterBindFromDatabase(); // load gids and fix CMS database storage bugs
|
||
} else {
|
||
$users = array();
|
||
}
|
||
|
||
if ( ! $_CB_database->getErrorNum() ) {
|
||
// creates the CBUsers in cache corresponding to the $users:
|
||
foreach ( array_keys( $users ) as $k) {
|
||
if ( $users ) foreach ( array_keys( $users ) as $k) {
|
||
CBuser::setUserGetCBUserInstance( $users[$k] );
|
||
}
|
||
} else {
|