Skip to content

Commit

Permalink
Fix PHP notice by only reinitializing sessions when being logged out.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5705 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
amyreese committed Oct 21, 2008
1 parent be08bb8 commit 564a458
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions verify.php
Expand Up @@ -40,12 +40,12 @@
# force logout on the current user if already authenticated
if( auth_is_user_authenticated() ) {
auth_logout();
}

# (Re)initialize session
session_regenerate_id()
session_init( session_id() );
$g_session_pass_id = ON;
# (Re)initialize session
session_regenerate_id()
session_init( session_id() );
$g_session_pass_id = ON;
}

$t_calculated_confirm_hash = auth_generate_confirm_hash( $f_user_id );

Expand Down

0 comments on commit 564a458

Please sign in to comment.