Project

General

Profile

Bug #3675 ยป cb.lists.patch

krileon, 05 September 2012 16:06

View differences:

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 {
    (1-1/1)