mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Fix error key(): Argument #1 ($array) must be of type array, null given
This commit is contained in:
parent
7de75f16c1
commit
7d95139fa9
@ -303,7 +303,7 @@ class calendar_uiforms extends calendar_ui
|
||||
// (add, edit, update, delete)
|
||||
$update_type = $content['id'] ? ($content['recur_type'] == MCAL_RECUR_NONE ? 'update' : 'edit') : 'add';
|
||||
|
||||
$button = @key($content['button']);
|
||||
$button = @key((array)$content['button']);
|
||||
if (!$button && $content['action']) $button = $content['action']; // action selectbox
|
||||
unset($content['button']); unset($content['action']);
|
||||
|
||||
|
@ -1777,7 +1777,7 @@ class infolog_ui
|
||||
$referer = $content['referer']; unset($content['referer']);
|
||||
$no_popup = $content['no_popup']; unset($content['no_popup']);
|
||||
|
||||
$button = @key($content['button']);
|
||||
$button = @key((array)$content['button']);
|
||||
if (!$button && $action) $button = $action; // action selectbox
|
||||
//info_cc expects an comma separated string
|
||||
//error_log(__METHOD__.__LINE__.array2string($content));
|
||||
|
Loading…
Reference in New Issue
Block a user