add search term to not found message
This commit is contained in:
@@ -51,7 +51,8 @@ if (isset($_GET['group'])) {
|
|||||||
|
|
||||||
if (isset($data['error'])) {
|
if (isset($data['error'])) {
|
||||||
echo "<p>Error: {$data['error']}</p>";
|
echo "<p>Error: {$data['error']}</p>";
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
foreach ($data as $row) {
|
foreach ($data as $row) {
|
||||||
// safety: skip rows that do not contain the expected keys
|
// safety: skip rows that do not contain the expected keys
|
||||||
if (!isset($row['gpo'], $row['ad_group'], $row['local_group'])) {
|
if (!isset($row['gpo'], $row['ad_group'], $row['local_group'])) {
|
||||||
@@ -94,11 +95,12 @@ if (isset($_GET['group'])) {
|
|||||||
echo '</table>';
|
echo '</table>';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
echo 'No results found for query.<p>';
|
echo 'No results found for query <b>'.$_GET['group'].'</b>.<p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
echo "<p>No group specified.</p>";
|
echo "<p>No group specified.</p>";
|
||||||
}
|
}
|
||||||
echo "<p>Source code can be found <a target='_blank' rel='noopener noreferrer' href='https://gitea.matt-cloud.com/matt/gpo_lookup'>here</a>.<p>";
|
echo "<p>Source code can be found <a target='_blank' rel='noopener noreferrer' href='https://gitea.matt-cloud.com/matt/gpo_lookup'>here</a>.<p>";
|
||||||
|
|||||||
Reference in New Issue
Block a user