Permalink
Browse files

MDL-11525 When courseid is not present in the log entry, showing "Sit…

…e" instead of $log->info
  • Loading branch information...
1 parent 34a2acf commit eed1c7ca5b7dbbab3a3e6c427fbce6e095447bde nicolasconnault committed Oct 5, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
@@ -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";
}

0 comments on commit eed1c7c

Please sign in to comment.