Make WordPress Core


Ignore:
Timestamp:
09/19/2006 11:56:28 PM (19 years ago)
Author:
ryan
Message:

Warning and notice fixes from Alex King. fixes #3148

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r4196 r4198  
    389389            if ( $flat) {
    390390                // Start the element.
    391                 if ( $element->$id_field != 0 ) {
     391                if ( isset($element->$id_field) && $element->$id_field != 0 ) {
    392392                    $cb_args = array_merge( array($output, $element, $depth - 1), $args);
    393393                    $output = call_user_func_array(array(&$this, 'start_el'), $cb_args);
     
    395395   
    396396                // End the element.
    397                 if ( $element->$id_field != 0 ) {
     397                if ( isset($element->$id_field) && $element->$id_field != 0 ) {
    398398                    $cb_args = array_merge( array($output, $element, $depth - 1), $args);
    399399                    $output = call_user_func_array(array(&$this, 'end_el'), $cb_args);
     
    584584        }
    585585   
    586         if ( $show_count )
     586        if ( isset($show_count) && $show_count )
    587587            $link .= ' ('.intval($category->category_count).')';
    588588   
    589         if ( $show_date ) {
     589        if ( isset($show_date) && $show_date ) {
    590590            $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
    591591        }
Note: See TracChangeset for help on using the changeset viewer.