From 4581ad7e2b8996d868b2be21a30ab8de1475543a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Oct 2021 12:36:58 +0200 Subject: [PATCH] fix PHP 8.0 Error: calendar_boupdate::update(): Argument #6 ($messages) cannot be passed by reference --- calendar/inc/class.calendar_uiforms.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index ac65f48aa0..7089a49048 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1267,8 +1267,6 @@ class calendar_uiforms extends calendar_ui Api\DateTime::to($as_of_date,'ts') < time() ) { - - unset($orig_event); // copy event by unsetting the id(s) unset($event['id']); unset($event['uid']); @@ -1325,7 +1323,8 @@ class calendar_uiforms extends calendar_ui } $last->setTime(0, 0, 0); $old_event['recur_enddate'] = Api\DateTime::to($last, 'ts'); - if (!$this->bo->update($old_event,true,true,false,true,$dummy=null,$no_notifications)) + $dummy = null; + if (!$this->bo->update($old_event,true,true,false,true,$dummy, $no_notifications)) { $msg .= ($msg ? ', ' : '') .lang('Error: the entry has been updated since you opened it for editing!').'
'. lang('Copy your changes to the clipboard, %1reload the entry%2 and merge them.','