Cast to array to avoid warning. fixes #3556

git-svn-id: http://svn.automattic.com/wordpress/trunk@4716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-01-10 20:42:17 +00:00
parent 741ea65d3b
commit cc281016ff
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ function _pad_category_counts($type, &$categories) {
}
// Transfer the touched cells
foreach ( $cat_items as $id => $items )
foreach ( (array) $cat_items as $id => $items )
if ( isset($cats[$id]) )
$cats[$id]->{'link' == $type ? 'link_count' : 'category_count'} = count($items);
}