From fe9c7dd372fd4b9c29fbdb381f05fb2c5821e211 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 18 Oct 2021 15:41:22 +0200 Subject: [PATCH] Fix type error happens when trying to save an event. --- calendar/inc/class.calendar_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index d455e58bfa..d3b03e67b1 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -642,12 +642,12 @@ class calendar_ui * * @param int $event_id * @param Api\DateTime $recurrence_date - * @param array $old_event + * @param array|bool|int|null $old_event * * @return boolean True if the event was updated, false if it could not be * updated or was removed. */ - public function update_client($event_id, Api\DateTime $recurrence_date = null, array $old_event = array()) + public function update_client($event_id, Api\DateTime $recurrence_date = null, $old_event = array()) { if(!$event_id) {