id, $current ) ) ? "selected='selected'" : ""; $title = $category->title; if( $prefix != "" ) $title = $prefix . " " . $title; $response .= ""; if( $category->has('children') ) $response .= category_select_options($category->children, $current, $prefix . "-"); } return $response; }