You can't index an array with an object ref. Silly Ryan.

git-svn-id: https://develop.svn.wordpress.org/trunk@2503 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-03-31 05:00:39 +00:00
parent 3122bbc8d2
commit 78d13aebb6
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ function &get_category(&$category, $output = OBJECT) {
if ( !isset($cache_categories[$category]) ) {
$category = $wpdb->get_row("SELECT * FROM $wpdb->categories WHERE cat_ID = $category");
$category->category_id = $category->cat_ID; // Alias.
$cache_categories[$category] = & $category;
$cache_categories[$category->cat_ID] = & $category;
} else {
$category = & $cache_categories[$category];
}