git-svn-id: http://svn.automattic.com/wordpress/trunk@2235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-02-07 02:06:57 +00:00
parent 3ec8c50289
commit c4bc224fa9
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ function return_categories_list( $parent = 0, $sortbyname = FALSE )
}
// First query the database
$cats_tmp = $wpdb->get_results("SELECT cat_id FROM $wpdb->categories WHERE category_parent = $parent ORDER BY $sort");
$cats_tmp = $wpdb->get_results("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY $sort");
// Now strip this down to a simple array of IDs
$cats = array();
@ -44,7 +44,7 @@ function return_categories_list( $parent = 0, $sortbyname = FALSE )
{
foreach( $cats_tmp as $cat )
{
$cats[] = $cat->cat_id;
$cats[] = $cat->cat_ID;
}
}