Init vars before use. Props Alex King. fixes #3180

git-svn-id: http://svn.automattic.com/wordpress/trunk@4277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2006-10-03 15:41:44 +00:00
parent 41dfdfd0f6
commit c4a4ea83b1
2 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ function get_category_children($id, $before = '/', $after = '') {
if ( 0 == $id )
return '';
$chain = '';
$cat_ids = get_all_category_ids();
foreach ( $cat_ids as $cat_id ) {
if ( $cat_id == $id)