Skip to content

Commit de8b105

Browse files
authored
fixed banning edge case
1 parent a082051 commit de8b105

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/plugins/rexshop.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ function handleDisputedTransaction($request)
554554
}
555555

556556
$user = $db->fetch_array($query, PDO::FETCH_ASSOC);
557+
if (!isset($user['uid')) || intval($user['uid']) < 1) {
558+
return rexshop_on_failure();
559+
}
557560

558561
$banned_groups = [];
559562
$q = $db->simple_select('usergroups', 'gid', 'isbannedgroup=1');

0 commit comments

Comments
 (0)