mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
deal with cols parameter to search() being an array
This commit is contained in:
parent
2c750ac774
commit
51c365d572
@ -511,7 +511,7 @@ class calendar_so
|
|||||||
if (!$params['enum_recuring'])
|
if (!$params['enum_recuring'])
|
||||||
{
|
{
|
||||||
$where[] = "$this->user_table.cal_recur_date=0";
|
$where[] = "$this->user_table.cal_recur_date=0";
|
||||||
$group_by = 'GROUP BY '.str_replace('cal_start,','',$cols);
|
$group_by = 'GROUP BY '.str_replace('cal_start,','',implode(', ',(array)$cols));
|
||||||
$cols = str_replace('cal_start','MIN(cal_start) AS cal_start',$cols);
|
$cols = str_replace('cal_start','MIN(cal_start) AS cal_start',$cols);
|
||||||
}
|
}
|
||||||
if ($end) $where[] = 'cal_start < '.(int)$end;
|
if ($end) $where[] = 'cal_start < '.(int)$end;
|
||||||
|
Loading…
Reference in New Issue
Block a user