Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-31177 fix notices when exporting logs to ods

  • Loading branch information...
commit 9e7ea20a1cf72d0a58e7fbfa77c38187e1be7bc3 1 parent 1aff7bb
@skodak skodak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/lib.php
View
2  course/lib.php
@@ -815,7 +815,7 @@ function print_log_ods($course, $user, $date, $order='l.time DESC', $modname,
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
- $myxls->write_string($row, 0, format_string($courses[$log->course], true, array('context' => $context)));
+ $myxls->write_string($row, 0, format_string($courses[$log->course], true, array('context' => $coursecontext)));
$myxls->write_date($row, 1, $log->time);
$myxls->write_string($row, 2, $log->ip);
$fullname = fullname($log, has_capability('moodle/site:viewfullnames', $coursecontext));
Please sign in to comment.
Something went wrong with that request. Please try again.