Cast to array to avoid warning. fixes #3556

git-svn-id: https://develop.svn.wordpress.org/trunk@4716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-01-10 20:42:17 +00:00
parent 2bbd69a21e
commit 827a32de28
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);
}