Skip to content

Commit

Permalink
Fixed #8500: Empty entry in "Category" drop down.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4661 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Oct 24, 2007
1 parent df46e13 commit b20c104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/print_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: print_api.php,v 1.184 2007-10-18 15:42:10 nuclear_eclipse Exp $
# $Id: print_api.php,v 1.185 2007-10-24 05:29:18 vboctor Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -690,7 +690,7 @@ function print_category_option_list( $p_category='', $p_project_id = null ) {
# Add the default option if not in the list retrieved from DB
# This is useful for default categories and when updating an
# issue with a deleted category.
if ( !in_array( $p_category, $cat_arr ) ) {
if ( !is_blank( $p_category ) && !in_array( $p_category, $cat_arr ) ) {
$cat_arr[] = $p_category;
}

Expand Down

0 comments on commit b20c104

Please sign in to comment.