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:
parent
426cd01a2a
commit
8a56739dc3
@ -18,7 +18,9 @@ function get_the_category($id = false) {
|
||||
|
||||
}
|
||||
|
||||
sort($categories);
|
||||
if (!empty($categories))
|
||||
sort($categories);
|
||||
|
||||
return $categories;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user