mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
fix issues
This commit is contained in:
parent
cc3fc4b9ba
commit
c03ad310cb
@ -64,8 +64,7 @@ if (\OCP\User::isLoggedIn()) {
|
||||
$addressBooks = $app->getAddressBooksForUser();
|
||||
foreach ($addressBooks as $addressBook) {
|
||||
if ($addressBook->isActive()) {
|
||||
// $addressBook is instance of \OCA\Contacts\Addressbook
|
||||
\OCP\Contacts::registerAddressBook($addressBook->getSearchProvider($addressBook));
|
||||
\OCP\Contacts::registerAddressBook($addressBook->getSearchProvider());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -487,7 +487,7 @@ class Addressbook extends AbstractPIMCollection {
|
||||
* Returns the searchProvider for a specific backend.
|
||||
* @param \OCA\Contacts\Addressbook $addressbook
|
||||
*/
|
||||
public function getSearchProvider($addressbook){
|
||||
return $this->backend->getSearchProvider($addressbook);
|
||||
public function getSearchProvider(){
|
||||
return $this->backend->getSearchProvider($this);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user