From: Victor B. <vb...@us...> - 2007-10-24 05:29:22
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17576 Modified Files: print_api.php Log Message: Fixed #8500: Empty entry in "Category" drop down. Index: print_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/print_api.php,v retrieving revision 1.184 retrieving revision 1.185 diff -u -d -r1.184 -r1.185 --- print_api.php 18 Oct 2007 15:42:10 -0000 1.184 +++ print_api.php 24 Oct 2007 05:29:18 -0000 1.185 @@ -690,7 +690,7 @@ # 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; } |