summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMatthew Barnes <dropkick500@gmail.com>2021-02-01 10:50:06 -0700
committerGitHub <noreply@github.com>2021-02-01 10:50:06 -0700
commitb1a585666491570f81005869d0ff195da2c2ba44 (patch)
tree305c7bab9b923e0785e82c16ee587679ce380c53 /inc
parent3a0c97b3d42a5476810590a20ab27e66aa0c2cac (diff)
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"
Diffstat (limited to 'inc')
-rw-r--r--inc/mod/pages.php2
1 files changed, 1 insertions, 1 deletions
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'];
}