Skip to content

Commit

Permalink
MDL-11525 When courseid is not present in the log entry, showing "Sit…
Browse files Browse the repository at this point in the history
…e" instead of $log->info
  • Loading branch information
nicolasconnault committed Oct 5, 2007
1 parent 34a2acf commit eed1c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/lib.php
Expand Up @@ -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";
}
Expand Down

0 comments on commit eed1c7c

Please sign in to comment.