mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
fix PHP 8.0 Error: calendar_boupdate::update(): Argument #6 ($messages) cannot be passed by reference
This commit is contained in:
parent
981f6d853d
commit
edf8e68189
@ -1267,8 +1267,6 @@ class calendar_uiforms extends calendar_ui
|
|||||||
Api\DateTime::to($as_of_date,'ts') < time()
|
Api\DateTime::to($as_of_date,'ts') < time()
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
unset($orig_event);
|
|
||||||
// copy event by unsetting the id(s)
|
// copy event by unsetting the id(s)
|
||||||
unset($event['id']);
|
unset($event['id']);
|
||||||
unset($event['uid']);
|
unset($event['uid']);
|
||||||
@ -1325,7 +1323,8 @@ class calendar_uiforms extends calendar_ui
|
|||||||
}
|
}
|
||||||
$last->setTime(0, 0, 0);
|
$last->setTime(0, 0, 0);
|
||||||
$old_event['recur_enddate'] = Api\DateTime::to($last, 'ts');
|
$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!').'<br />'.
|
$msg .= ($msg ? ', ' : '') .lang('Error: the entry has been updated since you opened it for editing!').'<br />'.
|
||||||
lang('Copy your changes to the clipboard, %1reload the entry%2 and merge them.','<a href="'.
|
lang('Copy your changes to the clipboard, %1reload the entry%2 and merge them.','<a href="'.
|
||||||
|
Loading…
Reference in New Issue
Block a user