From a194fea75f7340d53134ff1ecfa5969b03735576 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 20 Sep 2006 14:48:34 +0000 Subject: WP Merge to rev 4198 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@762 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/classes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wp-includes/classes.php') diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 55b46a3..b5f0a68 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -460,13 +460,13 @@ class Walker { // If flat, start and end the element and skip the level checks. if ( $flat) { // Start the element. - if ( $element->$id_field != 0 ) { + if ( isset($element->$id_field) && $element->$id_field != 0 ) { $cb_args = array_merge( array($output, $element, $depth - 1), $args); $output = call_user_func_array(array(&$this, 'start_el'), $cb_args); } // End the element. - if ( $element->$id_field != 0 ) { + if ( isset($element->$id_field) && $element->$id_field != 0 ) { $cb_args = array_merge( array($output, $element, $depth - 1), $args); $output = call_user_func_array(array(&$this, 'end_el'), $cb_args); } @@ -655,10 +655,10 @@ class Walker_Category extends Walker { $link .= ')'; } - if ( $show_count ) + if ( isset($show_count) && $show_count ) $link .= ' ('.intval($category->category_count).')'; - if ( $show_date ) { + if ( isset($show_date) && $show_date ) { $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); } -- cgit