forked from extern/egroupware
Handle selected columns as array without erroring
This commit is contained in:
parent
02ea708a38
commit
ab8cc893f7
@ -906,11 +906,11 @@ class infolog_so
|
||||
$index_load_cfs && $query['col_filter']['info_type'] && in_array($query['col_filter']['info_type'],$index_load_cfs)))
|
||||
{
|
||||
$where = array('info_id' => array_keys($ids));
|
||||
if (!($query['csv_export'] || strchr($query['selectcols'],'#') === false ||
|
||||
if (!($query['csv_export'] || strchr(implode(',',$query['selectcols']),'#') === false ||
|
||||
$index_load_cfs && $query['col_filter']['info_type'] && in_array($query['col_filter']['info_type'],$index_load_cfs)))
|
||||
{
|
||||
$where['info_extra_name'] = array();
|
||||
foreach(explode(',',$query['selectcols']) as $col)
|
||||
foreach(is_array($query['selectcols']) ? $query['selectcols'] : explode(',',$query['selectcols']) as $col)
|
||||
{
|
||||
if ($col[0] == '#') $where['info_extra_name'][] = substr($col,1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user