]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #6134 - error of coding, in function grade_download_form(); merged from MOODLE_16...
authorskodak <skodak>
Tue, 18 Jul 2006 06:43:29 +0000 (06:43 +0000)
committerskodak <skodak>
Tue, 18 Jul 2006 06:43:29 +0000 (06:43 +0000)
grade/lib.php

index f99521f7cb4159783aceabb1efb2312628408526..4988968728a77627281ff7e2cf8f86f0044c180d 100644 (file)
@@ -2877,7 +2877,7 @@ function grade_set_letter_grades() {
 
 function grade_download_form($type='both') {
     global $course,$USER, $action, $cview;
-    if ($type != 'both' || $type != 'excel' || $type != 'text') {
+    if ($type != 'both' and $type != 'excel' and $type != 'text') {
         $type = 'both';
     }
     
@@ -2886,13 +2886,13 @@ function grade_download_form($type='both') {
         $options['id'] = $course->id;
         $options['sesskey'] = $USER->sesskey;
         
-        if ($type = 'both' || $type == 'excel') {
+        if ($type == 'both' || $type == 'excel') {
             $options['action'] = 'excel';
             echo '<td align="center">';
             print_single_button("index.php", $options, get_string("downloadexcel"));
             echo '</td>';
         }
-        if ($type = 'both' || $type == 'text') {
+        if ($type == 'both' || $type == 'text') {
             $options['action'] = 'text';
             echo '<td align="center">';
             print_single_button("index.php", $options, get_string("downloadtext"));