diff --git a/grade/export/grade_export_form.php b/grade/export/grade_export_form.php
index <HASH>..<HASH> 100755
--- a/grade/export/grade_export_form.php
+++ b/grade/export/grade_export_form.php
@@ -54,8 +54,8 @@ class grade_export_form extends moodleform {
             $mform->addElement('date_time_selector', 'validuntil', get_string('keyvaliduntil', 'userkey'), array('optional'=>true));
             $mform->setHelpButton('validuntil', array(false, get_string('keyvaliduntil', 'userkey'),
                     false, true, false, get_string("keyvaliduntilhelp", 'userkey')));
-            $mform->disabledIf('iprestriction', 'key', 'eq', 0);
-            $mform->disabledIf('validuntil', 'key', 'eq', 0);
+            $mform->disabledIf('iprestriction', 'key', 'noteq', 1);
+            $mform->disabledIf('validuntil', 'key', 'noteq', 1);
         }
 
         $mform->addElement('header', 'gradeitems', get_string('gradeitemsinc', 'grades'));
fix of disabledIf fix :-(