From b1a585666491570f81005869d0ff195da2c2ba44 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 1 Feb 2021 10:50:06 -0700 Subject: Add missing isset, fix ban function Before this, ban attempts error out with "Undefined index: thread in /var/www/html/inc/mod/pages.php at line 1847" --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 650f854d..fbce7ff7 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1844,7 +1844,7 @@ function mod_ban_post($board, $delete, $post, $token = false) { 'token' => $security_token ); - if($_GET['thread']) { + if(isset($_GET['thread'])) { $args['thread'] = $_GET['thread']; } -- cgit v1.3