From 37d53dce3afd29241ce2a24d11342067a7db704b Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 4 Oct 2000 21:20:50 +0000 Subject: [PATCH] Fixed the parciapant list. Its now working again --- calendar/edit_entry.php | 9 ++++----- calendar/edit_entry_handler.php | 13 +++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/calendar/edit_entry.php b/calendar/edit_entry.php index 4aa9d33ea2..fd8d12b0c9 100755 --- a/calendar/edit_entry.php +++ b/calendar/edit_entry.php @@ -273,9 +273,8 @@ function validate_and_submit() { . "\n" - . "\n"; + . "\n"; ?> diff --git a/calendar/edit_entry_handler.php b/calendar/edit_entry_handler.php index b2115eee45..7e8874b26a 100755 --- a/calendar/edit_entry_handler.php +++ b/calendar/edit_entry_handler.php @@ -167,17 +167,18 @@ if (! $error) { $id = $phpgw->db->f(0); - for ($i = 0; $i < count($participants); $i++) { + while ($participant = each($participants)) { +// for ($i = 0; $i < count($participants); $i++) { // Rewrite $sql = "INSERT INTO webcal_entry_user (cal_id,cal_login,cal_status ) " - . "VALUES ($id, '" . $participants[$i] . "', 'A')"; + . "VALUES ($id, '" . $participant[1] . "', 'A')"; $phpgw->db->query($sql); } - if (count($participants) == 0) - $phpgw->db->query("insert into webcal_entry_user (cal_id,cal_login,cal_status" - . ") values ($id,'" . $phpgw_info["user"]["userid"] . "','A' )"); - } +// if (count($participants) == 0) +// $phpgw->db->query("insert into webcal_entry_user (cal_id,cal_login,cal_status" +// . ") values ($id,'" . $phpgw_info["user"]["userid"] . "','A' )"); +// } if (strlen($rpt_type) || ! strcmp($rpt_type,'none') == 0) { // clearly, we want to delete the old repeats, before inserting new...