From 6677d03e246e1df77b61960b2fa404dc422c1019 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Fri, 4 Sep 2020 19:49:26 +0200 Subject: [PATCH] Remove unnecessary check on form parameter The calling form no longer relies on a select, so checking that the profile_id parameter is 0 does not make sense anymore. Fixes #27258 --- account_prof_update.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/account_prof_update.php b/account_prof_update.php index 5f4b39dfef..c3e4f0e3d7 100644 --- a/account_prof_update.php +++ b/account_prof_update.php @@ -61,12 +61,6 @@ if( $f_action != 'add' ) { $f_profile_id = gpc_get_int( 'profile_id' ); - - # Make sure user did select an existing profile from the list - if( $f_action != 'make_default' && $f_profile_id == 0 ) { - error_parameters( lang_get( 'select_profile' ) ); - trigger_error( ERROR_EMPTY_FIELD, ERROR ); - } } switch( $f_action ) {