WordPress.org

Make WordPress Core

Changeset 4716


Ignore:
Timestamp:
01/10/2007 08:42:17 PM (11 years ago)
Author:
ryan
Message:

Cast to array to avoid warning. fixes #3556

File:
1 edited

Legend:

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

    r4707 r4716  
    295295
    296296    // Transfer the touched cells
    297     foreach ( $cat_items as $id => $items )
     297    foreach ( (array) $cat_items as $id => $items )
    298298        if ( isset($cats[$id]) )
    299299            $cats[$id]->{'link' == $type ? 'link_count' : 'category_count'} = count($items);
Note: See TracChangeset for help on using the changeset viewer.