1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Only search in active address books. Fix #424

This commit is contained in:
Thomas Tanghus 2014-02-26 11:28:01 +01:00
parent a5662ef938
commit 865d6e2e97

View File

@ -61,8 +61,8 @@ if(\OCP\User::isLoggedIn()) {
$app = new App($api->getUserId());
$addressBooks = $app->getAddressBooksForUser();
foreach($addressBooks as $addressBook) {
//if($addressBook->getBackend()->name === 'local') {
if($addressBook->isActive()) {
\OCP\Contacts::registerAddressBook(new AddressbookProvider($addressBook));
//}
}
}
}