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
This commit is contained in:
rboren 2004-11-15 06:00:21 +00:00
parent 0efa226889
commit 1d5e3d4f3c
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ function get_the_category($id = false) {
}
sort($categories);
if (!empty($categories))
sort($categories);
return $categories;
}