Skip to content

Commit

Permalink
MED-100: Correct content decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed May 17, 2024
1 parent e477d4a commit 575e436
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 575e436

Please sign in to comment.