diff options
Diffstat (limited to 'pages/parser.php')
-rw-r--r-- | pages/parser.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/parser.php b/pages/parser.php index a35f594..e3d70b8 100644 --- a/pages/parser.php +++ b/pages/parser.php @@ -90,7 +90,7 @@ $members = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd-members.json"), true); foreach ($members as $member) { - $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd-$member[id]-metadata.json"), true); + $data = parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd-$member[id]-metadata.json"), true)); if ($data["host"]) { echo $member['id']; } @@ -101,7 +101,7 @@ $members = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc-members.json"), true); foreach ($members as $member) { - $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc-$member[id]-metadata.json"), true); + $data = parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc-$member[id]-metadata.json"), true)); if ($data["host"]) { echo $member['id']; } |