From 8a56739dc3817fcb5538fc415fbc21b360df7ca4 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 15 Nov 2004 06:00:21 +0000 Subject: [PATCH] Check for null category list just in case of borkage. git-svn-id: https://develop.svn.wordpress.org/trunk@1853 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 501b00c681..df9cdeef92 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; }