From aad590f459b25152a5c033b1e41163402c466e04 Mon Sep 17 00:00:00 2001 From: Nicolas Dunand Date: Tue, 9 Apr 2019 15:31:41 +0200 Subject: [PATCH] Fix for https://github.com/ndunand/moodle-mod_opencast/issues/6 --- renderer.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/renderer.php b/renderer.php index 78b47ce..2c11265 100644 --- a/renderer.php +++ b/renderer.php @@ -535,8 +535,12 @@ function display_user_pending_clips($show_uploaded = true, $show_pending = true, echo html_writer::start_tag('table', ['class' => 'opencast-clips']); $this->display_singleclip_table_header(false, $with_owner, $with_uploader, false); foreach ($uploaded as $uploaded_record) { - $sc_clip = new mod_opencast_event($sc_obj, $uploaded_record->ext_id, null, $uploaded_record->opencastid); - $this->display_clip_outline($sc_clip, false, false, null, $with_owner, $with_uploader, false, false); + try { + $sc_clip = new mod_opencast_event($sc_obj, $uploaded_record->ext_id, null, $uploaded_record->opencastid); + $this->display_clip_outline($sc_clip, false, false, null, $with_owner, $with_uploader, false, false); + } + catch (Exception $e) { + } } echo html_writer::end_tag('table'); }