mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +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
|
* @return associative array|null
|
||||||
*/
|
*/
|
||||||
public static function serializeContact(Contact $contact) {
|
public static function serializeContact(Contact $contact) {
|
||||||
//\OCP\Util::writeLog('contacts', __METHOD__, \OCP\Util::DEBUG);
|
|
||||||
|
|
||||||
if(!$contact->retrieve()) {
|
if(!$contact->retrieve()) {
|
||||||
\OCP\Util::writeLog('contacts', __METHOD__.' error reading: ' . print_r($contact, true), \OCP\Util::DEBUG);
|
\OCP\Util::writeLog('contacts', __METHOD__.' error reading: ' . print_r($contact, true), \OCP\Util::DEBUG);
|
||||||
@ -90,8 +89,7 @@ class JSONSerializer {
|
|||||||
|
|
||||||
$details = array();
|
$details = array();
|
||||||
|
|
||||||
foreach($contact->children() as $property) {
|
foreach($contact->children as $property) {
|
||||||
//\OCP\Util::writeLog('contacts', __METHOD__.' property: '.$property->name, \OCP\Util::DEBUG);
|
|
||||||
$pname = $property->name;
|
$pname = $property->name;
|
||||||
$temp = self::serializeProperty($property);
|
$temp = self::serializeProperty($property);
|
||||||
if(!is_null($temp)) {
|
if(!is_null($temp)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user