summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-13 14:42:38 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-13 14:42:38 (GMT)
commit900aeb7374c391d02d6a8c27eb9d813ce73971ec (patch)
tree1db055ed13c9742d873171125c70e833cb4d8be6
parentd892b78025abfe22a64bd41b88caf77d9fc5e7e1 (diff)
downloadroundcubemail-plugins-kolab-900aeb7374c391d02d6a8c27eb9d813ce73971ec.tar.gz
Don't list birthday events when searching
-rw-r--r--plugins/calendar/drivers/database/database_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/calendar/drivers/database/database_driver.php b/plugins/calendar/drivers/database/database_driver.php
index 1d5f081..d665e04 100644
--- a/plugins/calendar/drivers/database/database_driver.php
+++ b/plugins/calendar/drivers/database/database_driver.php
@@ -836,7 +836,7 @@ class database_driver extends calendar_driver
}
// add events from the address books birthday calendar
- if (in_array(self::BIRTHDAY_CALENDAR_ID, $calendars)) {
+ if (in_array(self::BIRTHDAY_CALENDAR_ID, $calendars) && empty($query)) {
$events = array_merge($events, $this->load_birthday_events($start, $end, $search, $modifiedsince));
}