MDL-11525 When courseid is not present in the log entry, showing "Site" instead of $log->info

This commit is contained in:
nicolasconnault
2007-10-05 07:19:29 +00:00
parent 34a2acfc72
commit eed1c7ca5b
+1 -1
View File
@@ -512,7 +512,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
if ($course->id == SITEID) {
echo "<td class=\"cell c0\">\n";
if (empty($log->course)) {
echo format_string($log->info)."\n";
echo get_string('site') . "\n";
} else {
echo " <a href=\"{$CFG->wwwroot}/course/view.php?id={$log->course}\">". format_string($courses[$log->course])."</a>\n";
}