From 827a32de28733338e3406da082b8faf07b617755 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 10 Jan 2007 20:42:17 +0000 Subject: [PATCH] Cast to array to avoid warning. fixes #3556 git-svn-id: https://develop.svn.wordpress.org/trunk@4716 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index 6025a6740f..7f471618eb 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -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); }