Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
🐛 Bug fix: invite deletion
Browse files Browse the repository at this point in the history
All invites were deleted when deleting an invite in the admin panel.
  • Loading branch information
anditv21 committed Sep 27, 2023
1 parent 3f32c47 commit f0b6df8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/admin/invites.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
}
if (Util::securevar($_SERVER['REQUEST_METHOD']) === 'POST') {
if (isset($_POST['flushInvs'])) {
$delinv = Util::securevar($_POST['flushInvs']);
$flushinvs = Util::securevar($_POST['flushInvs']);
}

if (isset($delinv)) {
if (isset($flushinvs)) {
Util::adminCheck();
$admin->flushInvCode();
}
Expand Down

0 comments on commit f0b6df8

Please sign in to comment.