diff --git a/classes/coversheet/create_coversheet.php b/classes/coversheet/create_coversheet.php index 60ee6be..1f5e5c9 100644 --- a/classes/coversheet/create_coversheet.php +++ b/classes/coversheet/create_coversheet.php @@ -75,7 +75,7 @@ public static function get_coversheet(int $attemptid): string { $context = \context_system::instance(); $backgroundimage = $fs->get_file($context->id, 'quiz_archiver', 'pdfcoversheetbackgroundimage', 0, '/', $filename); - \local_debugger\performance\debugger::print_debug('test', 'backgroundimage', $backgroundimage); + if (!empty($backgroundimage)) { $url = \moodle_url::make_pluginfile_url( $backgroundimage->get_contextid(),