Project

General

Profile

Bug #3833 ยป 3833.patch

krileon, 28 December 2012 16:04

View differences:

administrator/components/com_comprofiler/comprofiler.class.php
$query = "SELECT * FROM #__comprofiler c LEFT JOIN #__users u ON c.id = u.id WHERE c.id = " . (int) $id;
$_CB_database->setQuery($query);
$user = $_CB_database->loadObjectList();
$user = $_CB_database->loadObjectList( null, 'moscomprofilerUser', array( &$_CB_database ) );
if ( ( $_CB_database->getErrorNum() ) || ( count( $user ) == 0 ) ) {
$query = "SELECT * FROM #__users u LEFT JOIN #__comprofiler c ON c.id = u.id WHERE u.id = " . (int) $id;
$_CB_database->setQuery($query);
$user = $_CB_database->loadObjectList();
$user = $_CB_database->loadObjectList( null, 'moscomprofilerUser', array( &$_CB_database ) );
}
if ( ( ! $_CB_database->getErrorNum() ) && ( count( $user ) > 0 ) ) {
$user = $user[0];
    (1-1/1)