mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 18:29:43 +01:00
Add test to avoid PHP warning
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -596,7 +596,7 @@ if ($_POST['action'] == 'get_groups') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($_POST['type'] != '2' && $_POST['type'] != '3') {
|
||||
if (isset($_POST['type']) && $_POST['type'] != '2' && $_POST['type'] != '3') {
|
||||
// If not adding a RegEx....
|
||||
$input = $domain;
|
||||
// Convert domain name to IDNA ASCII form for international domains
|
||||
|
||||
Reference in New Issue
Block a user