Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-31177 fix notices when exporting logs to ods

  • Loading branch information...
commit 918bcdcfabd8ea5fd50c8fdfda097c7c3b790708 1 parent 269c884
Petr Skoda skodak authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  course/lib.php
2  course/lib.php
@@ -818,7 +818,7 @@ function print_log_ods($course, $user, $date, $order='l.time DESC', $modname,
818 818
819 819 $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
820 820
821   - $myxls->write_string($row, 0, format_string($courses[$log->course], true, array('context' => $context)));
  821 + $myxls->write_string($row, 0, format_string($courses[$log->course], true, array('context' => $coursecontext)));
822 822 $myxls->write_date($row, 1, $log->time);
823 823 $myxls->write_string($row, 2, $log->ip);
824 824 $fullname = fullname($log, has_capability('moodle/site:viewfullnames', $coursecontext));

0 comments on commit 918bcdc

Please sign in to comment.
Something went wrong with that request. Please try again.