Browse Source

Fixed bug while exporting attendance data

MOODLE_23_STABLE
Artem Andreev 12 years ago
parent
commit
d52ff1a09b
  1. 4
      export.php

4
export.php

@ -160,9 +160,9 @@ function ExportToTableEd($data, $filename, $format) {
/// Sending HTTP headers /// Sending HTTP headers
$workbook->send($filename); $workbook->send($filename);
/// Creating the first worksheet /// Creating the first worksheet
$myxls =& $workbook->add_worksheet('Attendances'); $myxls = $workbook->add_worksheet('Attendances');
/// format types /// format types
$formatbc =& $workbook->add_format(); $formatbc = $workbook->add_format();
$formatbc->set_bold(1); $formatbc->set_bold(1);
$myxls->write(0, 0, get_string('course'), $formatbc); $myxls->write(0, 0, get_string('course'), $formatbc);

Loading…
Cancel
Save