Skip to content

Commit

Permalink
Update Invite.class.php
Browse files Browse the repository at this point in the history
Array, bug fix
  • Loading branch information
nice42q authored Oct 5, 2023
1 parent f73751f commit ffc9fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/lib/data/user/invite/Invite.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public static function checkUnusedCodeExist(): int
$statement = WCF::getDB()->prepare($sql);
$statement->execute([WCF::getUser()->userID]);
while ($key = $statement->fetchArray()) {
if ($key > 0) {
if ($key["successCount"] > 0) {
$sCount++;
}
}
Expand Down

0 comments on commit ffc9fe2

Please sign in to comment.