From 179bf15dafcd322354b4cdb4a8d044598b6e89a9 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 26 Mar 2012 15:30:04 +0200 Subject: [PATCH] fix group sql generator in calendar's share lib --- apps/calendar/lib/share.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/calendar/lib/share.php b/apps/calendar/lib/share.php index 7117607ebbd..42dfc8a3101 100644 --- a/apps/calendar/lib/share.php +++ b/apps/calendar/lib/share.php @@ -155,11 +155,7 @@ class OC_Calendar_Share{ $group_where = ''; $i = 0; foreach($groups as $group){ - if($i == 0){ - $group_where = 'OR ('; - }else{ - $group_where .= ' OR '; - } + $group_where .= ' OR '; $group_where .= ' (share = "' . $group . '" AND sharetype = "group") '; $i++; } -- 2.39.5