diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index f7297a382b..5ee36a63a9 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -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']); diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 3bc4ee7c89..1e4b17740f 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1781,7 +1781,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));