From: Michael Vogel Date: Mon, 10 Aug 2015 21:11:07 +0000 (+0200) Subject: Metadata should be an object. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e60456fb6644510506d8852fa796bb32cf1f3331;p=friendica.git Metadata should be an object. --- diff --git a/mod/nodeinfo.php b/mod/nodeinfo.php index 065f33eb19..f9211fe9e5 100644 --- a/mod/nodeinfo.php +++ b/mod/nodeinfo.php @@ -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);