From de8b10585e0b2d12960327a80352fe1bba1e6651 Mon Sep 17 00:00:00 2001 From: Srexi Date: Thu, 13 Oct 2022 11:30:51 +0200 Subject: [PATCH] fixed banning edge case --- inc/plugins/rexshop.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/plugins/rexshop.php b/inc/plugins/rexshop.php index 6bce804..d2cdbbe 100644 --- a/inc/plugins/rexshop.php +++ b/inc/plugins/rexshop.php @@ -554,6 +554,9 @@ function handleDisputedTransaction($request) } $user = $db->fetch_array($query, PDO::FETCH_ASSOC); + if (!isset($user['uid')) || intval($user['uid']) < 1) { + return rexshop_on_failure(); + } $banned_groups = []; $q = $db->simple_select('usergroups', 'gid', 'isbannedgroup=1');