Index: user_helper.php =================================================================== --- user_helper.php (revision 13861) +++ user_helper.php (working copy) @@ -65,10 +65,11 @@ return LOGIN_RESULT_INVALID_PASSWORD; } + $user_id = USER_ROOT; + $object->Clear($user_id); + $object->SetDBField('Login', 'root'); + if (!$dry_run) { - $user_id = USER_ROOT; - $object->Load($user_id); - $object->SetDBField('Login', 'root'); $this->Application->StoreVar('user_id', $user_id); $this->Application->SetVar('u.current_id', $user_id); $this->Application->Session->SetField('PortalUserId', $user_id);