From dbba1059bb28872dae48a00b62488fc71867f768 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 15 Dec 2016 20:42:31 +0100 Subject: [PATCH] Move variables out of if clause --- php/savesettings.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/php/savesettings.php b/php/savesettings.php index 7460305c..27fa763c 100644 --- a/php/savesettings.php +++ b/php/savesettings.php @@ -34,10 +34,11 @@ function validDomain($domain_name) "8.20.247.20" => "Comodo" ]; + $error = ""; + $success = ""; + if(isset($_POST["field"])) { - $error = ""; - $success = ""; // Process request switch ($_POST["field"]) { // Set DNS server