diff --git a/files/dashboard/index.php b/files/dashboard/index.php index d3c7c1a..16e6618 100644 --- a/files/dashboard/index.php +++ b/files/dashboard/index.php @@ -51,7 +51,8 @@ if (isset($_GET['group'])) { if (isset($data['error'])) { echo "
Error: {$data['error']}
"; - } else { + } + else { foreach ($data as $row) { // safety: skip rows that do not contain the expected keys if (!isset($row['gpo'], $row['ad_group'], $row['local_group'])) { @@ -94,11 +95,12 @@ if (isset($_GET['group'])) { echo ''; } else{ - echo 'No results found for query.'; + echo 'No results found for query '.$_GET['group'].'.
'; } } -} else { +} +else { echo "
No group specified.
"; } echo "Source code can be found here.
";