From 59d78ad4bc85910ff01ccf46e96f4185a2fe7a76 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Sun, 6 Sep 2020 16:41:17 +0200 Subject: [PATCH] Remove last remaining call to profile_get_row() Replacing it with profile_get_row_direct(). Since profiles identified with a globally unique ID, it does not make sense for the API to require a user ID to retrieve a profile, as it needlessly complexifies the caller's code. Fixes #27258 --- account_prof_edit_page.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/account_prof_edit_page.php b/account_prof_edit_page.php index 26e2dc7c01..22dc27181d 100644 --- a/account_prof_edit_page.php +++ b/account_prof_edit_page.php @@ -65,10 +65,8 @@ $t_global_profile = profile_is_global( $f_profile_id ); if( $t_global_profile ) { access_ensure_global_level( config_get( 'manage_global_profile_threshold' ) ); - $t_row = profile_get_row( ALL_USERS, $f_profile_id ); -} else { - $t_row = profile_get_row( auth_get_current_user_id(), $f_profile_id ); } +$t_row = profile_get_row_direct( $f_profile_id ); /** * @var $v_id