mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Move variables out of if clause
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user