mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 10:23:28 +01:00
fix PHP Warning: Invalid argument supplied for foreach()
This commit is contained in:
parent
d53c6c4180
commit
a17a29db81
@ -935,9 +935,12 @@ class calendar_uiviews extends calendar_ui
|
||||
$set_execute = function(&$action) use (&$set_execute)
|
||||
{
|
||||
$action['onExecute'] = 'javaScript:app.calendar.action_merge';
|
||||
foreach($action['children'] as &$child)
|
||||
if (!empty($action['children']))
|
||||
{
|
||||
$set_execute($child);
|
||||
foreach($action['children'] as &$child)
|
||||
{
|
||||
$set_execute($child);
|
||||
}
|
||||
}
|
||||
};
|
||||
$set_execute($actions['documents']);
|
||||
|
Loading…
Reference in New Issue
Block a user