Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-27990 assignment: removed a redundant retrieval of a user preference

  • Loading branch information...
commit 83dfca3fa391e678a5ce1cc162f645a49d499e0a 1 parent be34802
@andyjdavis andyjdavis authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  mod/assignment/lib.php
View
2  mod/assignment/lib.php
@@ -2302,12 +2302,10 @@ function add_feedback_section() {
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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.