From: Georg Ehrke Date: Mon, 26 Mar 2012 13:30:04 +0000 (+0200) Subject: fix group sql generator in calendar's share lib X-Git-Tag: v4.0.0beta~244^2~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=179bf15dafcd322354b4cdb4a8d044598b6e89a9;p=nextcloud-server.git fix group sql generator in calendar's share lib --- 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++; }