Skip to content

Commit

Permalink
Reenable ability to clear default profile
Browse files Browse the repository at this point in the history
Regression introduced by 7d1800e

Fixes #15698
  • Loading branch information
dregad committed Apr 4, 2013
1 parent 7d1800e commit 7659298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_prof_update.php
Expand Up @@ -64,7 +64,7 @@
$f_profile_id = gpc_get_int( 'profile_id' );

# Make sure user did select an existing profile from the list
if( $f_profile_id == 0 ) {
if( $f_action != 'make_default' && $f_profile_id == 0 ) {
error_parameters( lang_get( 'select_profile' ) );
trigger_error( ERROR_EMPTY_FIELD, ERROR );
}
Expand Down

0 comments on commit 7659298

Please sign in to comment.