X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/65a14aacf0fd9f5f89bcb7b800b7f72ac30e7a81..refs/pull/8/head:/users/index.php diff --git a/users/index.php b/users/index.php index 8cf7147..a520ae9 100644 --- a/users/index.php +++ b/users/index.php @@ -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? */ { @@ -185,7 +184,7 @@ Click on a username to view more information. echo ""; $isBot = (strpos($user->user->modes, "B") !== false) ? ' Bot' : ""; echo "id."\">$user->name$isBot"; - echo "".htmlspecialchars($user->hostname)." (".htmlspecialchars($user->ip).")"; + echo "".htmlspecialchars($user->hostname)." (".htmlspecialchars($user->ip ?? "None").")"; $account = (isset($user->user->account)) ? "user->account."\">".htmlspecialchars($user->user->account)."" : 'None'; echo "".$account.""; $modes = (isset($user->user->modes)) ? "+" . $user->user->modes : "";