diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-03-26 15:30:04 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-03-26 15:30:04 +0200 |
commit | 179bf15dafcd322354b4cdb4a8d044598b6e89a9 (patch) | |
tree | 4389b1f3c7da434aa1aa639f755b51de6696952d /apps/calendar/lib | |
parent | 71b32f7ad4684360f460726977fb3d803f7bb48a (diff) | |
download | nextcloud-server-179bf15dafcd322354b4cdb4a8d044598b6e89a9.tar.gz nextcloud-server-179bf15dafcd322354b4cdb4a8d044598b6e89a9.zip |
fix group sql generator in calendar's share lib
Diffstat (limited to 'apps/calendar/lib')
-rw-r--r-- | apps/calendar/lib/share.php | 6 |
1 files changed, 1 insertions, 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++; } |