From 6c5031943a5ffa22bcbaf1c513a22d71e081b1f5 Mon Sep 17 00:00:00 2001 From: skeeter Date: Wed, 7 Nov 2001 00:29:42 +0000 Subject: [PATCH] This will check to see if an event has any participants. --- calendar/inc/class.bocalendar.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index 09c5504fa7..43ec1e1bfb 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -764,7 +764,7 @@ @reset($event['participants']); $uim = False; $security_equals = $GLOBALS['phpgw']->accounts->membership($user); - while(!$uim && $security_equals && list($participant,$status) = each($event['participants'])) + while(!$uim && $event['participants'] && $security_equals && list($participant,$status) = each($event['participants'])) { if($GLOBALS['phpgw']->accounts->get_type($participant) == 'g') {