mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
0efa226889
commit
1d5e3d4f3c
@ -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