mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:38 +02:00
fix TypeError
This commit is contained in:
parent
32ebee7229
commit
c04a01229b
@ -1005,7 +1005,7 @@ class calendar_boupdate extends calendar_bo
|
|||||||
$rdates = array_map(static function($rdate) use ($user_prefs)
|
$rdates = array_map(static function($rdate) use ($user_prefs)
|
||||||
{
|
{
|
||||||
return new Api\DateTime($rdate, new DateTimeZone($user_prefs['common']['tz']));
|
return new Api\DateTime($rdate, new DateTimeZone($user_prefs['common']['tz']));
|
||||||
}, $event['recur_rdates']);
|
}, $event['recur_rdates'] ?? []);
|
||||||
$recur_date = isset($event['recur_date']) ? new Api\DateTime($event['recur_date'], new DateTimeZone($user_prefs['common']['tz'])) : null;
|
$recur_date = isset($event['recur_date']) ? new Api\DateTime($event['recur_date'], new DateTimeZone($user_prefs['common']['tz'])) : null;
|
||||||
|
|
||||||
//error_log(__METHOD__."() date_default_timezone_get()=".date_default_timezone_get().", user-timezone=".Api\DateTime::$user_timezone->getName().", startdate=".$startdate->format().", enddate=".$enddate->format().", updated=".$modified->format().", olddate=".($olddate ? $olddate->format() : ''));
|
//error_log(__METHOD__."() date_default_timezone_get()=".date_default_timezone_get().", user-timezone=".Api\DateTime::$user_timezone->getName().", startdate=".$startdate->format().", enddate=".$enddate->format().", updated=".$modified->format().", olddate=".($olddate ? $olddate->format() : ''));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user