mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fixed 2 warnings
This commit is contained in:
parent
ec6d873941
commit
e1c0177c50
@ -606,6 +606,7 @@ class calendar_uiforms extends calendar_ui
|
||||
$event['recurrence'] = $content['edit_single'];
|
||||
unset($event['id']);
|
||||
// modifiy alarms for the exception, unsetting alarm-id to create new alarms
|
||||
if (!is_array($event['alarm'])) $event['alarm'] = array();
|
||||
foreach($event['alarm'] as $n => &$alarm)
|
||||
{
|
||||
unset($alarm['id']);
|
||||
@ -788,7 +789,7 @@ class calendar_uiforms extends calendar_ui
|
||||
{
|
||||
if ($edit_series_confirmed) // series moved by splitting in two
|
||||
{
|
||||
foreach ($old_alarms as $alarm)
|
||||
foreach ((array)$old_alarms as $alarm)
|
||||
{
|
||||
// check if alarms still needed in old event, if not delete it
|
||||
$event_time = $alarm['time'] + $alarm['offset'];
|
||||
|
Loading…
Reference in New Issue
Block a user