| @@ 206-210 (lines=5) @@ | ||
| 203 | __METHOD__ . ', indexing: ' . $limit . ' starting from ' . $offset, |
|
| 204 | \OCP\Util::DEBUG); |
|
| 205 | foreach ($contacts as $contact) { |
|
| 206 | if(!$contact->retrieve()) { |
|
| 207 | \OCP\Util::writeLog('contacts', |
|
| 208 | __METHOD__ . ', Error loading contact ' .print_r($contact, true), |
|
| 209 | \OCP\Util::DEBUG); |
|
| 210 | } |
|
| 211 | Utils\Properties::updateIndex($contact->getId(), $contact); |
|
| 212 | } |
|
| 213 | $offset += $limit; |
|
| @@ 706-708 (lines=3) @@ | ||
| 703 | if (in_array($name, array('PHOTO', 'UID'))) { |
|
| 704 | continue; |
|
| 705 | } |
|
| 706 | if (!is_array($properties)) { |
|
| 707 | \OCP\Util::writeLog('contacts', __METHOD__.' not an array?: ' .$name. ' '.print_r($properties, true), \OCP\Util::DEBUG); |
|
| 708 | } |
|
| 709 | if (in_array($name, Utils\Properties::$multiProperties)) { |
|
| 710 | unset($this->{$name}); |
|
| 711 | } |
|