From a1f87eb4195a57cc66518b9a05ae2f232555ff9e Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 18 Oct 2022 11:49:36 -0600 Subject: [PATCH] Calendar: Avoid error in link_title if participants is not an array --- calendar/inc/class.calendar_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index a76374c516..011aa4a799 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -2014,7 +2014,7 @@ class calendar_bo $extra_fields [$val] = $this->format_date($event[$val]); break; case 'participants': - foreach (array_keys($event[$val]) as $key) + foreach(array_keys((array)$event[$val]) as $key) { $extra_fields [$val] = Api\Accounts::id2name($key, 'account_fullname'); }