Skip to content

Commit

Permalink
fixed banning edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
srexi committed Oct 13, 2022
1 parent a082051 commit de8b105
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/plugins/rexshop.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit de8b105

Please sign in to comment.