Make sure get_the_category() returns an array.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-02-27 04:47:38 +00:00
parent 6bb1b724ab
commit 4ae13d2448
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;
}