From 575e43633cd05ae874101ab3aff9688f9be1feb3 Mon Sep 17 00:00:00 2001 From: Daniel Thies Date: Fri, 17 May 2024 09:22:14 -0500 Subject: [PATCH] MED-100: Correct content decoding --- lib.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib.php b/lib.php index c836aec..4f49d21 100644 --- a/lib.php +++ b/lib.php @@ -98,7 +98,6 @@ private function get_mediatime_resources($searchtext = ''): array { return []; } foreach ($rs as $record) { - $record->content = json_decode($record->content); $resource = new media_resource($record); $url = new moodle_url('/admin/tool/mediatime/index.php', ['id' => $record->id]); $imageurl = $resource->image_url($OUTPUT); @@ -129,7 +128,6 @@ protected function get_resource(int $source) { global $DB; $record = $DB->get_record('tool_mediatime', ['id' => $source]); - $record->content = json_decode($record->content); return new media_resource($record); }