"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mod/feedback/lib.php" between
moodle-3.6.5.tgz and moodle-3.6.6.tgz

About: moodle is a learning management system for producing Internet-based course Web sites. Latest 3.6 release.

lib.php  (moodle-3.6.5.tgz):lib.php  (moodle-3.6.6.tgz)
skipping to change at line 3011 skipping to change at line 3011
$userid = $USER->id; $userid = $USER->id;
} }
$cm = get_fast_modinfo($event->courseid, $userid)->instances['feedback'][$ev ent->instance]; $cm = get_fast_modinfo($event->courseid, $userid)->instances['feedback'][$ev ent->instance];
if (!$cm->uservisible) { if (!$cm->uservisible) {
// The module is not visible to the user for any reason. // The module is not visible to the user for any reason.
return null; return null;
} }
$completion = new \completion_info($cm->get_course());
$completiondata = $completion->get_data($cm, false, $userid);
if ($completiondata->completionstate != COMPLETION_INCOMPLETE) {
return null;
}
$feedbackcompletion = new mod_feedback_completion(null, $cm, 0, false, null, null, $userid); $feedbackcompletion = new mod_feedback_completion(null, $cm, 0, false, null, null, $userid);
if (!empty($cm->customdata['timeclose']) && $cm->customdata['timeclose'] < t ime()) { if (!empty($cm->customdata['timeclose']) && $cm->customdata['timeclose'] < t ime()) {
// Feedback is already closed, do not display it even if it was never su bmitted. // Feedback is already closed, do not display it even if it was never su bmitted.
return null; return null;
} }
if (!$feedbackcompletion->can_complete()) { if (!$feedbackcompletion->can_complete()) {
// The user can't complete the feedback so there is no action for them. // The user can't complete the feedback so there is no action for them.
return null; return null;
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)