Skip to content

Commit

Permalink
Make addressbook search limit and offset optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tomneedham committed Jun 27, 2017
1 parent d8b01b8 commit 6da3ca5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/CardDAV/AddressBookImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function getDisplayName() {
* @return array an array of contacts which are arrays of key-value-pairs
* @since 5.0.0
*/
public function search($pattern, $searchProperties, $options, $limit, $offset) {
public function search($pattern, $searchProperties, $options, $limit = null, $offset = null) {
$results = $this->backend->search($this->getKey(), $pattern, $searchProperties, $limit, $offset);

$vCards = [];
Expand Down
2 changes: 1 addition & 1 deletion lib/public/IAddressBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getDisplayName();
* @return array an array of contacts which are arrays of key-value-pairs
* @since 5.0.0
*/
public function search($pattern, $searchProperties, $options, $limit, $offset);
public function search($pattern, $searchProperties, $options, $limit = null, $offset = null);
// // dummy results
// return array(
// array('id' => 0, 'FN' => 'Thomas Müller', 'EMAIL' => '[email protected]', 'GEO' => '37.386013;-122.082932'),
Expand Down

0 comments on commit 6da3ca5

Please sign in to comment.