Permalink
Browse files

Revert "Editing user prefs when no project exists triggers error"

This reverts commit 26831ea.

See mantis bug - ALL_PROJECTS should remain in this case
  • Loading branch information...
1 parent 26831ea commit 06fc79055388d852e4fedf07068e8115ea45747e @grangeway grangeway committed Sep 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 account_prefs_inc.php
@@ -82,8 +82,8 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
if( $t_num_proj == 1 ) {
$t_num_proj += count( current_user_get_accessible_subprojects( $t_projects[0] ) );
}
- # Don't display "All projects" in selection list if there is only 1
- print_project_option_list( $t_pref->default_project, $t_num_proj != 1 );
+ # Only display "All projects" in selection list if there is more than 1
+ print_project_option_list( $t_pref->default_project, $t_num_proj > 1 );
?>
</select>
</td>

0 comments on commit 06fc790

Please sign in to comment.