Make sure get_the_category() returns an array.

git-svn-id: https://develop.svn.wordpress.org/trunk@2387 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-02-27 04:47:38 +00:00
parent a06446a1b4
commit 4aa9fdc013
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ function get_the_category($id = false) {
if (!empty($categories))
sort($categories);
else
$categories = array();
return $categories;
}