Project

General

Profile

Bug #3196 » 3196-p2.patch

krileon, 30 January 2012 20:24

View differences:

/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();
}
(2-2/6)