From 2d692f36150b9a92804c13b62e934c9737e2ff2d Mon Sep 17 00:00:00 2001 From: Craig Knudsen Date: Mon, 24 Jun 2024 09:43:30 -0400 Subject: [PATCH] Bug fix: If you reject an event with no participants, PHP error --- reject_entry.php | 1 + 1 file changed, 1 insertion(+) diff --git a/reject_entry.php b/reject_entry.php index d98a226be..e84241ba4 100644 --- a/reject_entry.php +++ b/reject_entry.php @@ -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];