mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
fix PHP Warning: Invalid argument supplied for foreach()
This commit is contained in:
parent
b57661509f
commit
e8f067097b
@ -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