diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-09-20 14:48:34 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-09-20 14:48:34 +0000 |
commit | a194fea75f7340d53134ff1ecfa5969b03735576 (patch) | |
tree | f7c061c4e37d888538d3d59e8307f9d2529b0c25 /wp-includes/classes.php | |
parent | ae484584028c752efb5faa4c02259556e853d26e (diff) | |
download | wordpress-mu-a194fea75f7340d53134ff1ecfa5969b03735576.tar.gz wordpress-mu-a194fea75f7340d53134ff1ecfa5969b03735576.tar.xz wordpress-mu-a194fea75f7340d53134ff1ecfa5969b03735576.zip |
WP Merge to rev 4198
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@762 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/classes.php')
-rw-r--r-- | wp-includes/classes.php | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |