MDL-24649 Fixed typo preventing download in excel format
authorShane Elliott <shane@pukunui.com>
Wed, 13 Oct 2010 09:00:31 +0000 (09:00 +0000)
committerShane Elliott <shane@pukunui.com>
Wed, 13 Oct 2010 09:00:31 +0000 (09:00 +0000)
mod/choice/report.php

index fd28a6b..f2bc269 100644 (file)
         $downloadoptions[] = html_writer::tag('li', $button, array('class'=>'reportoption'));
 
         $options["download"] = "xls";
-        $buttons = $OUTPUT->single_button(new moodle_url("report.php", $options), get_string("downloadexcel"));
+        $button = $OUTPUT->single_button(new moodle_url("report.php", $options), get_string("downloadexcel"));
         $downloadoptions[] = html_writer::tag('li', $button, array('class'=>'reportoption'));
 
         $options["download"] = "txt";