From 4ae13d24487417150ce369fdab04a946a9409e52 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 27 Feb 2005 04:47:38 +0000 Subject: [PATCH] Make sure get_the_category() returns an array. git-svn-id: http://svn.automattic.com/wordpress/trunk@2387 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-category.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index d7c70581a9..82a9267847 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -20,6 +20,8 @@ function get_the_category($id = false) { if (!empty($categories)) sort($categories); + else + $categories = array(); return $categories; }