From d58439e0d9b50390bba7d44d9faf159ea2fa45c9 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 22 Feb 2017 11:41:25 +0100 Subject: [PATCH] Some cosmetics for fresh installed systems --- queries.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/queries.php b/queries.php index 7dd4d1ae..e26df9fe 100644 --- a/queries.php +++ b/queries.php @@ -19,21 +19,27 @@ if(isset($setupVars["API_QUERY_LOG_SHOW"])) { if($setupVars["API_QUERY_LOG_SHOW"] === "all") { - $showing = "(showing all queries"; + $showing = "showing all queries"; } elseif($setupVars["API_QUERY_LOG_SHOW"] === "permittedonly") { - $showing = "(showing permitted queries only"; + $showing = "showing permitted queries only"; } elseif($setupVars["API_QUERY_LOG_SHOW"] === "blockedonly") { - $showing = "(showing blocked queries only"; + $showing = "showing blocked queries only"; } elseif($setupVars["API_QUERY_LOG_SHOW"] === "nothing") { - $showing = "(showing no queries at all"; + $showing = "showing no queries at all"; } } +else +{ + // If filter variable is not set, we + // automatically show all queries + $showing = "showing all queries"; +} if(isset($_GET["all"])) { @@ -64,7 +70,11 @@ if(isset($setupVars["API_PRIVACY_MODE"])) $showing .= ", privacy mode enabled"; } } -$showing .= ")"; + +if(strlen($showing) > 0) +{ + $showing = "(".$showing.")"; +} ?>