From 92fd202c1dc54a75852f9473c30d6d84ad0d1182 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 9 Nov 2009 22:42:30 -0500 Subject: [PATCH] work around WP bug #11112 --- actions/comicpress_build-storyline-schema.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actions/comicpress_build-storyline-schema.php b/actions/comicpress_build-storyline-schema.php index f2c7bf8..4002565 100644 --- a/actions/comicpress_build-storyline-schema.php +++ b/actions/comicpress_build-storyline-schema.php @@ -30,8 +30,9 @@ function cpm_action_build_storyline_schema() { $parts = explode("/", $field); if (($parts[0] == "0") && (count($parts) > 1)) { $category_id = end($parts); - $category = get_category($category_id, ARRAY_A); + $category = get_category($category_id); if (!empty($category)) { + $category = (array)$category; if ($category['cat_name'] != $value) { $cpm_config->messages[] = sprintf(__('Category %1$s renamed to %2$s.', 'comicpress-manager'), $category['cat_name'], $value); $category['cat_name'] = $value;