fix PHP warning : array_diff_key(): Argument #2 is not an array on line 281

This commit is contained in:
Ralf Becker 2017-04-10 15:59:48 +02:00
parent 500e212048
commit 17a735634c

View File

@ -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)