From 2a20dc23ae856ffe8050242d9e8fcb6021fc64f8 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Tue, 9 Feb 2016 13:52:35 +0100 Subject: [PATCH] Use correct format HFJ-1610 --- h5p.classes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 6085b70..2741687 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2467,10 +2467,10 @@ class H5PCore { $data = array( 'api_version' => 2, 'uuid' => $uuid, - 'platform_name' => $platform->name, - 'platform_version' => $platform->version, - 'h5p_version' => $platform->h5pVersion, - 'disabled' => $fetchingDisabled, + 'platform_name' => $platform['name'], + 'platform_version' => $platform['version'], + 'h5p_version' => $platform['h5pVersion'], + 'disabled' => $fetchingDisabled ? 1 : 0, 'local_id' => hash('crc32', $this->fullPluginPath), 'type' => $this->h5pF->getOption('site_type', 'local'), 'num_authors' => $this->h5pF->getNumAuthors(),