]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - users/index.php
various: Check variable existence
[irc/unrealircd/unrealircd-webpanel.git] / users / index.php
index c8316ade6e0aa8c5a5633539d62d9103479cfec5..a520ae910b4b7425bda0ba2eb97e38ae0b72ed32 100644 (file)
@@ -17,13 +17,12 @@ if (!empty($_GET))
 if (!empty($_POST))
 {
        do_log($_POST);
-       $bantype = $_POST['bantype'];
+       $bantype = (isset($_POST['bantype'])) ? $_POST['bantype'] : NULL;
 
        if (isset($_POST['userch'])) {
                foreach ($_POST["userch"] as $user)
                {
                        $user = $name = base64_decode($user);
-                       $bantype = (isset($_POST['bantype'])) ? $_POST['bantype'] : NULL;
 
                        if (!$bantype) /* shouldn't happen? */
                        {