diff --git a/wp-admin/link-import.php b/wp-admin/link-import.php index 3066eb17b..3990e7556 100644 --- a/wp-admin/link-import.php +++ b/wp-admin/link-import.php @@ -22,41 +22,40 @@ switch ($step) { ?>
+
+ get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_id"); - foreach ($categories as $category) { +$categories = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_id"); +foreach ($categories as $category) { ?> - cat_id.': '.$category->cat_name; ?> +cat_id.': '.$category->cat_name; ?> - +