Make sure cat list is an array. Props: Peter Westwood
git-svn-id: http://svn.automattic.com/wordpress/trunk@2683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bdfab81fd0
commit
56c304f8bb
|
@ -229,6 +229,9 @@ function wp_get_post_cats($blogid = '1', $post_ID = 0) {
|
|||
|
||||
$result = $wpdb->get_col($sql);
|
||||
|
||||
if ( !$result )
|
||||
$result = array();
|
||||
|
||||
return array_unique($result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue