Skip to content

Commit

Permalink
Fix internal error on view_user_page
Browse files Browse the repository at this point in the history
Fixes #34399
  • Loading branch information
atrol committed Apr 7, 2024
1 parent 6c2c21a commit 69464e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions view_user_page.php
Expand Up @@ -54,10 +54,13 @@

auth_ensure_user_authenticated();

# extracts the user information for the currently logged in user
# and prefixes it with u_
# extracts the user information and prefixes it with u_
$f_user_id = gpc_get_int( 'id', auth_get_current_user_id() );
$t_row = user_get_row( $f_user_id );
if( !$t_row ) {
error_parameters( $f_user_id );
trigger_error( ERROR_USER_BY_ID_NOT_FOUND, ERROR);
}

extract( $t_row, EXTR_PREFIX_ALL, 'u' );

Expand Down

0 comments on commit 69464e4

Please sign in to comment.