diff --git a/report/log/classes/table_log.php b/report/log/classes/table_log.php index 1706e574453..8df6db9285d 100644 --- a/report/log/classes/table_log.php +++ b/report/log/classes/table_log.php @@ -195,7 +195,7 @@ class report_log_table_log extends table_sql { $context = context::instance_by_id($event->contextid, IGNORE_MISSING); if ($context) { $contextname = $context->get_context_name(true); - if (($url = $context->get_url()) && empty($this->download)) { + if (empty($this->download) && $url = $context->get_url()) { $contextname = html_writer::link($url, $contextname); } } else {