Make sure the api doesn't enable and disable at the same time.

This commit is contained in:
Mcat12
2016-12-04 13:32:17 -05:00
parent 0dec4b8aa0
commit cc6e029f78

View File

@@ -68,8 +68,7 @@
"status" => "enabled"
));
}
if (isset($_GET['disable'], $_GET['token']) && $auth) {
elseif (isset($_GET['disable'], $_GET['token']) && $auth) {
check_csrf($_GET['token']);
exec('sudo pihole disable');
$data = array_merge($data, Array(