mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
Avoid warning about select_cols already being an array
This commit is contained in:
parent
fc3eca62f0
commit
782e3438ee
@ -294,7 +294,11 @@ class calendar_uilist extends calendar_ui
|
||||
|
||||
// do we need to query custom fields and which
|
||||
// Check stored preference if selectcols isn't available (ie: first call)
|
||||
$select_cols = explode(',',$params['selectcols'] ? $params['selectcols'] : $GLOBALS['egw_info']['user']['preferences']['calendar']['nextmatch-calendar.list.rows']);
|
||||
$select_cols = $params['selectcols'] ? $params['selectcols'] : $GLOBALS['egw_info']['user']['preferences']['calendar']['nextmatch-calendar.list.rows'];
|
||||
if(!is_array($params['selectcols']))
|
||||
{
|
||||
$select_cols = explode(',',$select_cols);
|
||||
}
|
||||
if (in_array('cfs',$select_cols))
|
||||
{
|
||||
$cfs = array();
|
||||
|
Loading…
Reference in New Issue
Block a user