Check if the GET param 'tab' is set before use

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2017-12-13 17:59:21 -05:00
parent d298f3f4ec
commit 6689a83874
+1 -1
View File
@@ -223,7 +223,7 @@ if (isset($setupVars["API_PRIVACY_MODE"])) {
?>
<?php
if (in_array($_GET['tab'], array("sysadmin", "blocklists", "dns", "piholedhcp", "api", "teleporter"))) {
if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "blocklists", "dns", "piholedhcp", "api", "teleporter"))) {
$tab = $_GET['tab'];
} else {
$tab = "sysadmin";