From 1d5e3d4f3c20511fe6baa4906084454c6a93b1f4 Mon Sep 17 00:00:00 2001 From: rboren Date: Mon, 15 Nov 2004 06:00:21 +0000 Subject: [PATCH] Check for null category list just in case of borkage. git-svn-id: http://svn.automattic.com/wordpress/trunk@1853 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-category.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index 501b00c68..df9cdeef9 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -18,7 +18,9 @@ function get_the_category($id = false) { } - sort($categories); + if (!empty($categories)) + sort($categories); + return $categories; }