Make sure cat list is an array. Props: Peter Westwood
git-svn-id: https://develop.svn.wordpress.org/trunk@2683 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
545507c3b6
commit
15a525e6dc
|
@ -229,6 +229,9 @@ function wp_get_post_cats($blogid = '1', $post_ID = 0) {
|
||||||
|
|
||||||
$result = $wpdb->get_col($sql);
|
$result = $wpdb->get_col($sql);
|
||||||
|
|
||||||
|
if ( !$result )
|
||||||
|
$result = array();
|
||||||
|
|
||||||
return array_unique($result);
|
return array_unique($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue