From 8332de167d6f7d9bd3ab427d49b043781a35a6e2 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 18 Jul 2006 06:43:29 +0000 Subject: [PATCH] Bug #6134 - error of coding, in function grade_download_form(); merged from MOODLE_16_STABLE --- grade/lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grade/lib.php b/grade/lib.php index f99521f7cb4..4988968728a 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -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 ''; print_single_button("index.php", $options, get_string("downloadexcel")); echo ''; } - if ($type = 'both' || $type == 'text') { + if ($type == 'both' || $type == 'text') { $options['action'] = 'text'; echo ''; print_single_button("index.php", $options, get_string("downloadtext"));