mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix group sql generator in calendar's share lib
This commit is contained in:
parent
71b32f7ad4
commit
179bf15daf
1 changed files with 1 additions and 5 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue