mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
Contacts: Component->children !== Component->children
This commit is contained in:
parent
036df3bee4
commit
c8ade4b24e
@ -81,7 +81,6 @@ class JSONSerializer {
|
||||
* @return associative array|null
|
||||
*/
|
||||
public static function serializeContact(Contact $contact) {
|
||||
//\OCP\Util::writeLog('contacts', __METHOD__, \OCP\Util::DEBUG);
|
||||
|
||||
if(!$contact->retrieve()) {
|
||||
\OCP\Util::writeLog('contacts', __METHOD__.' error reading: ' . print_r($contact, true), \OCP\Util::DEBUG);
|
||||
@ -90,8 +89,7 @@ class JSONSerializer {
|
||||
|
||||
$details = array();
|
||||
|
||||
foreach($contact->children() as $property) {
|
||||
//\OCP\Util::writeLog('contacts', __METHOD__.' property: '.$property->name, \OCP\Util::DEBUG);
|
||||
foreach($contact->children as $property) {
|
||||
$pname = $property->name;
|
||||
$temp = self::serializeProperty($property);
|
||||
if(!is_null($temp)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user