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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-29 16:36:44 +00:00
parent 02fb7b43fe
commit 9dbf550f9e
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' ) ) {