From 7e74bf28f0685830091621ea5132782fd3252af0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 25 Oct 2008 06:43:15 +0000 Subject: [PATCH] "fixed problem reported by Moe on the German list: if a ressource category is displayed, all displayed ressources are add to the event (eg. all meeting rooms)" --- calendar/inc/class.calendar_uiforms.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 255e9f5356..d136f2e0d3 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -88,7 +88,10 @@ class calendar_uiforms extends calendar_ui { if ($owner) // make an owner who is no user or we have no add-rights a participant { - $extra_participants += explode(',',$owner); + foreach(explode(',',$owner) as $uid) + { + if (is_numeric($uid)) $extra_participants[] = $uid; // dont add eg. all resources of the displayed category + } } $owner = $this->user; }