]> git.mxchange.org Git - friendica.git/commitdiff
Metadata should be an object.
authorMichael Vogel <icarus@dabo.de>
Mon, 10 Aug 2015 21:11:07 +0000 (23:11 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 10 Aug 2015 21:11:07 +0000 (23:11 +0200)
mod/nodeinfo.php

index 065f33eb19bc983423739a24e7e88f5fb107018f..f9211fe9e56390f5e4e316d7e708439beeefb451 100644 (file)
@@ -113,7 +113,7 @@ function nodeinfo_init(&$a){
        $nodeinfo["usage"]["localPosts"] = (int)get_config("nodeinfo","local_posts");
        $nodeinfo["usage"]["localComments"] = (int)get_config("nodeinfo","local_comments");
 
-       $nodeinfo["usage"]["metadata"] = array();
+       $nodeinfo["metadata"] = new stdClass();
 
        header('Content-type: application/json; charset=utf-8');
        echo json_encode($nodeinfo, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);