Skip to content

Commit

Permalink
Bug fix: If you reject an event with no participants, PHP error
Browse files Browse the repository at this point in the history
  • Loading branch information
craigk5n committed Jun 24, 2024
1 parent d1eca7b commit 2d692f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reject_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
$res = dbi_execute ( 'SELECT cal_login FROM webcal_entry_user
WHERE cal_id = ?
AND cal_status = "A"', [$id] );
$partlogin = [];
if ( $res ) {
while ( $row = dbi_fetch_row ( $res ) ) {
$partlogin[] = $row[0];
Expand Down

0 comments on commit 2d692f3

Please sign in to comment.