Skip to content

Commit f0b6df8

Browse files
committed
🐛 Bug fix: invite deletion
All invites were deleted when deleting an invite in the admin panel.
1 parent 3f32c47 commit f0b6df8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/admin/invites.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
}
4848
if (Util::securevar($_SERVER['REQUEST_METHOD']) === 'POST') {
4949
if (isset($_POST['flushInvs'])) {
50-
$delinv = Util::securevar($_POST['flushInvs']);
50+
$flushinvs = Util::securevar($_POST['flushInvs']);
5151
}
5252

53-
if (isset($delinv)) {
53+
if (isset($flushinvs)) {
5454
Util::adminCheck();
5555
$admin->flushInvCode();
5656
}

0 commit comments

Comments
 (0)