]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Merge branch 'oauthapi'
[friendica.git] / mod / poco.php
index 2c2aeb656ccfd1d82c1a6632d35e9d1f4cd331ca..21ee4df695906291e2e3cad07c1e0b8f101dbff1 100644 (file)
@@ -98,11 +98,11 @@ function poco_init(&$a) {
                                if($fields_ret['displayName'])
                                        $entry['displayName'] = $rr['name'];
                                if($fields_ret['urls'])
-                                       $entry['urls'] = array('value' => $rr['url'], 'type' => 'profile');
+                                       $entry['urls'] = array(array('value' => $rr['url'], 'type' => 'profile'));
                                if($fields_ret['preferredUsername'])
                                        $entry['preferredUsername'] = $rr['nick'];
                                if($fields_ret['photos'])
-                                       $entry['photos'] = array('value' => $rr['photo'], 'type' => 'profile');
+                                       $entry['photos'] = array(array('value' => $rr['photo'], 'type' => 'profile'));
                                $ret['entry'][] = $entry;
                        }
                }