mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Addressbook - limit previous / next event to the previous / next 2 years, instead of all time
Gives slightly faster performace and reduces memory useage.
This commit is contained in:
parent
21b1cc8e7e
commit
d92de5501d
@ -1611,6 +1611,8 @@ class Contacts extends Contacts\Storage
|
|||||||
|
|
||||||
$bocal = new calendar_bo();
|
$bocal = new calendar_bo();
|
||||||
$events = $bocal->search(array(
|
$events = $bocal->search(array(
|
||||||
|
'start' => strtotime('2 years ago'),
|
||||||
|
'end' => strtotime('2 years from now'),
|
||||||
'users' => $uids,
|
'users' => $uids,
|
||||||
'enum_recuring' => true,
|
'enum_recuring' => true,
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user