Use simpler logic

Co-authored-by: Adam Warner <me@adamwarner.co.uk>

Signed-off-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
yubiuser
2022-06-12 13:24:53 +02:00
committed by GitHub
parent a75e8fc1d3
commit ff350449c0

View File

@@ -640,7 +640,7 @@ if ($_POST['action'] == 'get_groups') {
}
}
if( ! ($_POST['type'] == '2' || $_POST['type'] == '3'))
if( $_POST['type'] != '2' && $_POST['type'] != '3')
{
// If not adding a RegEx, we convert the domain lower case and check whether it is valid
$domain = strtolower($domain);