]> git.mjollnir.org Git - moodle.git/commitdiff
fixing a warning
authortoyomoyo <toyomoyo>
Mon, 22 Oct 2007 03:05:15 +0000 (03:05 +0000)
committertoyomoyo <toyomoyo>
Mon, 22 Oct 2007 03:05:15 +0000 (03:05 +0000)
grade/export/grade_export_form.php
grade/export/lib.php
grade/export/xml/index.php

index 4710df4d515f24aabf624177604cc37b9c9647f5..83a8f5c215cf993feb6d0b82594076be7df00e0f 100755 (executable)
@@ -44,9 +44,7 @@ class grade_export_form extends moodleform {
         $options = array('10'=>10, '20'=>20, '100'=>100, '1000'=>1000, '100000'=>100000);
         $mform->addElement('select', 'previewrows', get_string('previewrows', 'grades'), $options); 
 
-        if (!empty($features['updatedgrades'])) {
-            $mform->addElement('advcheckbox', 'updatedgradesonly', get_string('updatedgradesonly', 'grades'));
-        }
+        $mform->addElement('advcheckbox', 'updatedgradesonly', get_string('updatedgradesonly', 'grades'));
         
         /// selections for decimal points and format, MDL-11667, defaults to site settings, if set
         //$default_gradedisplaytype = $CFG->grade_export_displaytype;
index b5f1bf12b44beffa25434f2dd9ac61e7393dc890..9648a62d0e35c5c75fa4aa3610ccc5bd9dc6cc78 100755 (executable)
@@ -76,7 +76,6 @@ class grade_export {
             }
         }
 
-        $this->export_letters  = $export_letters;
         $this->export_feedback = $export_feedback;
         $this->userkey         = '';
         $this->previewrows     = false;
index ee002b40e798dae0968f555e3524d7c9428b3d67..7ad2606cd017033d6c2f64bb6066dd8dfcdefc66 100755 (executable)
@@ -51,7 +51,7 @@ if (!empty($CFG->gradepublishing)) {
     $CFG->gradepublishing = has_capability('gradeexport/xml:publish', $context);
 }
 
-$mform = new grade_export_form(null, array('idnumberrequired'=>true, 'publishing' => true, 'updatedgrades' => true));
+$mform = new grade_export_form(null, array('idnumberrequired'=>true, 'publishing' => true));
 
 // process post information
 if ($data = $mform->get_data()) {