diff --git a/calendar/inc/class.bocal.inc.php b/calendar/inc/class.bocal.inc.php index df7856b74f..a834a94d52 100644 --- a/calendar/inc/class.bocal.inc.php +++ b/calendar/inc/class.bocal.inc.php @@ -372,7 +372,16 @@ class bocal } if (!$this->check_perms(EGW_ACL_READ,$event) || (!$event['public'] && $filter == 'hideprivate')) { - $this->clear_private_infos($events[$id],$users); + if($params['query']) + { + unset($events[$id]); + $this->total--; + continue; + } + else + { + $this->clear_private_infos($events[$id],$users); + } } }