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
This commit is contained in:
Ryan Boren 2004-11-15 06:00:21 +00:00
parent 426cd01a2a
commit 8a56739dc3
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;
}