Bug #3196 » 3196-p2.patch
/administrator/components/com_comprofiler/comprofiler.class.php | ||
---|---|---|
}
|
||
|
||
if ( $activate ) {
|
||
$query = 'UPDATE #__users'
|
||
. "\n SET block = 0"
|
||
. "\n WHERE id = " . (int) $user->id;
|
||
$_CB_database->setQuery( $query );
|
||
if ( ( !$_CB_database->query() ) && ( $ui != 0 ) ) {
|
||
echo 'SQL-unblock1 error: ' . $_CB_database->stderr(true);
|
||
}
|
||
$user->block = '0';
|
||
|
||
$user->storeBlock();
|
||
|
||
$user->removeActivationCode();
|
||
}
|
||
|