Project

General

Profile

Bug #2246 » 2246.patch

krileon, 25 January 2011 20:09

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
if ( checkJversion() >= 1 ) {
$usersConfig = &JComponentHelper::getParams( 'com_users' );
$setting = $usersConfig->get( $config );
if ( ( checkJversion() == 2 ) ) {
if ( ( checkJversion() == 2 ) && ( $config == 'new_usertype' ) ) {
$query = 'SELECT ' . $this->_cmsDatabase->NameQuote( 'title' )
. "\n FROM " . $this->_cmsDatabase->NameQuote( '#__usergroups' )
. "\n WHERE " . $this->_cmsDatabase->NameQuote( 'id' ) . " = " . (int) $setting;
(1-1/2)