fixing syntax error
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 12 Jan 2016 19:22:24 +0000 (14:22 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 12 Jan 2016 19:22:24 +0000 (14:22 -0500)
index.php

index 4400463..dedc8f1 100644 (file)
--- a/index.php
+++ b/index.php
@@ -483,9 +483,9 @@ function michsci_get_terms_dropdown($cat_id)
     $taxonomyName = MICHSCI_CATEGORY_NAME;
     if($cat_id){
         $cats_child = get_term_children($cat_id, $taxonomyName);
+        $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">Select " . MICHSCI_CATEGORY_SINGLE . "</option>";
         foreach($cats_child as $cat){
             echo $cat . " ";
-         $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">Select " . MICHSCI_CATEGORY_SINGLE . "</option>";
         $main = get_term($cat_id, MICHSCI_CATEGORY_NAME);
           $output .= '<option value="' . $cat . '"';
            if ($_REQUEST[MICHSCI_CATEGORY_NAME] == $cat) {