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(),