mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-28 10:24:11 +01:00
This should solve the 404 error
This commit is contained in:
parent
ed30778ea9
commit
5947a27884
@ -190,20 +190,19 @@ class Hooks{
|
||||
|
||||
foreach ($addressBookInfos as $addressBookInfo) {
|
||||
$addressBook = new AddressBook($backend, $addressBookInfo);
|
||||
while ($contacts = $addressBook->getChildren($limit, $offset, false)) {
|
||||
\OCP\Util::writeLog('contacts',
|
||||
__METHOD__ . ', indexing: ' . $limit . ' starting from ' . $offset,
|
||||
\OCP\Util::DEBUG);
|
||||
foreach ($contacts as $contact) {
|
||||
if(!$contact->retrieve()) {
|
||||
\OCP\Util::writeLog('contacts',
|
||||
__METHOD__ . ', Error loading contact ' .print_r($contact, true),
|
||||
\OCP\Util::DEBUG);
|
||||
}
|
||||
Utils\Properties::updateIndex($contact->getId(), $contact);
|
||||
$contacts = $addressBook->getChildren($limit, $offset, false);
|
||||
\OCP\Util::writeLog('contacts',
|
||||
__METHOD__ . ', indexing: ' . $limit . ' starting from ' . $offset,
|
||||
\OCP\Util::DEBUG);
|
||||
foreach ($contacts as $contact) {
|
||||
if(!$contact->retrieve()) {
|
||||
\OCP\Util::writeLog('contacts',
|
||||
__METHOD__ . ', Error loading contact ' .print_r($contact, true),
|
||||
\OCP\Util::DEBUG);
|
||||
}
|
||||
$offset += $limit;
|
||||
Utils\Properties::updateIndex($contact->getId(), $contact);
|
||||
}
|
||||
$offset += $limit;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user