From 3fc8f4ebdfde31597e68101f25616eae9cc92b7c Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Thu, 22 Sep 2016 13:09:33 -0400 Subject: [PATCH] Bugfixes in configure --- configure.php | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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 " "; + } } ?> -- 1.8.3.1