From 83dfca3fa391e678a5ce1cc162f645a49d499e0a Mon Sep 17 00:00:00 2001 From: "Andrew Davis (andyjdavis)" Date: Tue, 28 Jun 2011 11:08:59 +0800 Subject: [PATCH] MDL-27990 assignment: removed a redundant retrieval of a user preference --- mod/assignment/lib.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index eaa3aec67b4..339495f5419 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -2302,12 +2302,10 @@ class mod_assignment_grading_form extends moodleform { default : break; } - $lastmailinfo = get_user_preferences('assignment_mailinfo', 1) ? array('checked'=>'checked') : array(); $mform->addElement('hidden', 'mailinfo_h', "0"); $mform->setType('mailinfo_h', PARAM_INT); $mform->addElement('checkbox', 'mailinfo',get_string('enablenotification','assignment'). $OUTPUT->help_icon('enablenotification', 'assignment') .':' ); - $mform->updateElementAttr('mailinfo', $lastmailinfo); $mform->setType('mailinfo', PARAM_INT); } }