From 25b4c534a4550fd3fcf66233e46f5c7be2f2cafb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 10 Apr 2017 15:59:48 +0200 Subject: [PATCH] fix PHP warning : array_diff_key(): Argument #2 is not an array on line 281 --- calendar/inc/class.calendar_uilist.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uilist.inc.php b/calendar/inc/class.calendar_uilist.inc.php index fff4274d7d..02e30908ef 100644 --- a/calendar/inc/class.calendar_uilist.inc.php +++ b/calendar/inc/class.calendar_uilist.inc.php @@ -278,7 +278,7 @@ class calendar_uilist extends calendar_ui if (!$params['csv_export']) { Api\Cache::setSession('calendar', 'calendar_list', - array_diff_key ($params, array_flip('rows', 'actions', 'action_links', 'placeholder_actions'))); + array_diff_key ($params, array_flip(array('rows', 'actions', 'action_links', 'placeholder_actions')))); } // do we need to query custom fields and which // Check stored preference if selectcols isn't available (ie: first call)