# 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/comprofiler.class.php +++ /administrator/components/com_comprofiler/comprofiler.class.php @@ -836,15 +836,10 @@ } 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(); }