From e60456fb6644510506d8852fa796bb32cf1f3331 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 10 Aug 2015 23:11:07 +0200 Subject: [PATCH] Metadata should be an object. --- mod/nodeinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);