fix group sql generator in calendar's share lib

This commit is contained in:
Georg Ehrke 2012-03-26 15:30:04 +02:00
parent 71b32f7ad4
commit 179bf15daf
1 changed files with 1 additions and 5 deletions

View File

@ -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 .= ' (share = "' . $group . '" AND sharetype = "group") ';
$i++;
}