From ba11c7b394b5dbe1846bc48dd552f7aff57268d7 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 10 Nov 2018 08:40:05 +0100 Subject: [PATCH] Disply that the privacy level wasn't changed when this is the case. Signed-off-by: DL6ER --- scripts/pi-hole/php/savesettings.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/savesettings.php b/scripts/pi-hole/php/savesettings.php index 0f0ff1e8..08ff4c67 100644 --- a/scripts/pi-hole/php/savesettings.php +++ b/scripts/pi-hole/php/savesettings.php @@ -702,10 +702,14 @@ function readAdlists() exec("sudo pihole -a restartdns"); $success .= "The privacy level has been decreased and the DNS resolver has been restarted"; } - else + elseif($privacylevel < $level) { $success .= "The privacy level has been increased"; } + else + { + $success .= "The privacy level has been not been changed"; + } } else {