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) {
|
foreach ($addressBookInfos as $addressBookInfo) {
|
||||||
$addressBook = new AddressBook($backend, $addressBookInfo);
|
$addressBook = new AddressBook($backend, $addressBookInfo);
|
||||||
while ($contacts = $addressBook->getChildren($limit, $offset, false)) {
|
$contacts = $addressBook->getChildren($limit, $offset, false);
|
||||||
\OCP\Util::writeLog('contacts',
|
\OCP\Util::writeLog('contacts',
|
||||||
__METHOD__ . ', indexing: ' . $limit . ' starting from ' . $offset,
|
__METHOD__ . ', indexing: ' . $limit . ' starting from ' . $offset,
|
||||||
\OCP\Util::DEBUG);
|
\OCP\Util::DEBUG);
|
||||||
foreach ($contacts as $contact) {
|
foreach ($contacts as $contact) {
|
||||||
if(!$contact->retrieve()) {
|
if(!$contact->retrieve()) {
|
||||||
\OCP\Util::writeLog('contacts',
|
\OCP\Util::writeLog('contacts',
|
||||||
__METHOD__ . ', Error loading contact ' .print_r($contact, true),
|
__METHOD__ . ', Error loading contact ' .print_r($contact, true),
|
||||||
\OCP\Util::DEBUG);
|
\OCP\Util::DEBUG);
|
||||||
}
|
|
||||||
Utils\Properties::updateIndex($contact->getId(), $contact);
|
|
||||||
}
|
}
|
||||||
$offset += $limit;
|
Utils\Properties::updateIndex($contact->getId(), $contact);
|
||||||
}
|
}
|
||||||
|
$offset += $limit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user