mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Restructure variable check
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require('auth.php');
|
||||
|
||||
if(!isset($_POST['domain'], $_POST['list'], $_POST['token']) && !isset($_POST['domain'], $_POST['list'], $_POST['pw'])) {
|
||||
if(!isset($_POST['domain'], $_POST['list']) && !(isset($_POST['pw']) || isset($_POST['token']))) {
|
||||
log_and_die("Missing POST variables");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user