From f04c06956defd8f28f3b3e97a63b1084bbeb3a11 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 16 Oct 2003 17:21:13 +0000 Subject: [PATCH] small fix to gard against an sql-error if an empty group get selected --- calendar/inc/class.socalendar_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.socalendar_sql.inc.php b/calendar/inc/class.socalendar_sql.inc.php index 310c1729a9..6fd5346d6f 100755 --- a/calendar/inc/class.socalendar_sql.inc.php +++ b/calendar/inc/class.socalendar_sql.inc.php @@ -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); }