From da12f6f16d8dd6a30a1cb6bb32f53b4c0e99c084 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 19 Dec 2016 10:44:04 +0100 Subject: [PATCH] Change the "none" to "nothing" --- data.php | 2 +- php/savesettings.php | 2 +- queries.php | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data.php b/data.php index 2a145110..7060dc4e 100644 --- a/data.php +++ b/data.php @@ -163,7 +163,7 @@ $showBlocked = true; $showPermitted = false; } - elseif($setupVars["API_QUERY_LOG_SHOW"] === "none") + elseif($setupVars["API_QUERY_LOG_SHOW"] === "nothing") { $showBlocked = false; $showPermitted = false; diff --git a/php/savesettings.php b/php/savesettings.php index 27fa763c..49b856c8 100644 --- a/php/savesettings.php +++ b/php/savesettings.php @@ -205,7 +205,7 @@ function validDomain($domain_name) } else { - exec("sudo pihole -a setquerylog none"); + exec("sudo pihole -a setquerylog nothing"); $success .= "No entries will be shown in Query Log"; } diff --git a/queries.php b/queries.php index 153b5cbf..8907367f 100644 --- a/queries.php +++ b/queries.php @@ -23,6 +23,10 @@ if(isset($setupVars["API_QUERY_LOG_SHOW"])) { $showing = "(showing blocked queries only)"; } + elseif($setupVars["API_QUERY_LOG_SHOW"] === "nothing") + { + $showing = "(showing no queries at all)"; + } } ?>