small fix to gard against an sql-error if an empty group get selected

This commit is contained in:
Ralf Becker 2003-10-16 17:21:13 +00:00
parent 07db5a1869
commit f04c06956d

View File

@ -391,7 +391,7 @@ class socalendar_ extends socalendar__
$datetime = mktime(0,0,0,$startMonth,$startDay,$startYear) - $tz_offset;
$user_where = ' AND (phpgw_cal_user.cal_login in (';
if($owner_id)
if(is_array($owner_id) && count($owner_id))
{
$user_where .= implode(',',$owner_id);
}