From: Brian Flowers Date: Thu, 22 Sep 2016 17:09:33 +0000 (-0400) Subject: Bugfixes in configure X-Git-Url: http://git.slightlycyberpunk.com%2C%20git.slightlycyberpunk.com/git/?a=commitdiff_plain;h=3fc8f4ebdfde31597e68101f25616eae9cc92b7c;p=bdsm-web.git Bugfixes in configure --- diff --git a/configure.php b/configure.php index aad32ee..ef6d0c8 100755 --- a/configure.php +++ b/configure.php @@ -63,21 +63,25 @@ while($host = $result->fetchArray(SQLITE3_ASSOC)) foreach ($hosts as $host) { - echo " $host"; + echo " $host"; + echo ""; $result = $db_handle->query("SELECT DISTINCT attribute FROM MEASUREMENTS WHERE host='$host'"); $attributes = Array(); while($attribute = $result->fetchArray(SQLITE3_ASSOC)) if ( $attribute['attribute'] ) array_push($attributes, $attribute['attribute']); - echo " "; - echo " $attribute"; - echo " "; - echo " "; - echo " ". - .""; - echo " "; - echo " "; + foreach($attributes as $attribute) + { + echo " "; + echo " $attribute"; + echo " "; + echo " "; + echo " ". + ""; + echo " "; + echo " "; + } } ?>