# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/library/cb/cb.lists.php +++ administrator/components/com_comprofiler/library/cb/cb.lists.php @@ -350,13 +350,13 @@ } $_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 } if ( ! $_CB_database->getErrorNum() ) { // creates the CBUsers in cache corresponding to the $users: - foreach ( array_keys( $users ) as $k) { \ No newline at end of file + if ( $users ) foreach ( array_keys( $users ) as $k) { \ No newline at end of file CBuser::setUserGetCBUserInstance( $users[$k] ); } } else {