Skip to content

Commit

Permalink
Remove unnecessary check on form parameter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dregad committed Sep 18, 2020
1 parent d98fe42 commit 6677d03
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions account_prof_update.php
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 6677d03

Please sign in to comment.