Fix notice when searching categories. Props gortsleigh. fixes #9970

git-svn-id: https://develop.svn.wordpress.org/trunk@11485 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-29 16:36:44 +00:00
parent e72a01fdc8
commit c2041721e9
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ function _cat_row( $category, $level, $name_override = false ) {
$category = get_category( $category, OBJECT, 'display' );
$default_cat_id = (int) get_option( 'default_category' );
$pad = str_repeat( '— ', $level );
$pad = str_repeat( '— ', max(0, $level) );
$name = ( $name_override ? $name_override : $pad . ' ' . $category->name );
$edit_link = "categories.php?action=edit&cat_ID=$category->term_id";
if ( current_user_can( 'manage_categories' ) ) {