From 6f562ce0b4916a6acf3917b62b7efe159c558cb3 Mon Sep 17 00:00:00 2001 From: bgigon Date: Wed, 29 Sep 2004 16:05:09 +0000 Subject: [PATCH] Fixbug --- calendar/inc/class.uicalendar.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 33342cfbaa..7363531fa3 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -2345,6 +2345,7 @@ { $this->index(); } + // Fetch participants if( get_var("matrix", array("GET", "POST")) == 1 ) @@ -2355,7 +2356,13 @@ // fetch participatns from get and post var $participants = get_var("participants", array("GET", "POST")); // Defined - into session - who participates - $GLOBALS['phpgw']->session->appsession("participants_matrix", "calendar", implode(";", $participants)); + $GLOBALS['phpgw']->session->appsession("participants_matrix", "calendar", @implode(";", $participants)); + } + + // No type ... return to the select page + if (!get_var("matrixtype", array("GET", "POST")) OR !$participants ) + { + header('Location: ?menuaction=calendar.uicalendar.matrixselect'); } $date["year"] = get_var("year", array("GET", "POST"));