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:
ryan 2005-07-02 17:28:06 +00:00
parent bdfab81fd0
commit 56c304f8bb
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}