Skip to content

Commit

Permalink
MDL-39545 mod_assign: prevent notice from displaying when course modu…
Browse files Browse the repository at this point in the history
…le id does not exist
  • Loading branch information
mdjnelson committed May 7, 2013
1 parent 95190fd commit 34e338a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mod/assign/locallib.php
Expand Up @@ -354,8 +354,11 @@ public function view($action='') {
$o = '';
$mform = null;
$notices = array();
$nextpageparams = array();

$nextpageparams = array('id'=>$this->get_course_module()->id);
if (!empty($this->get_course_module()->id)) {
$nextpageparams['id'] = $this->get_course_module()->id;
}

// Handle form submissions first.
if ($action == 'savesubmission') {
Expand Down

0 comments on commit 34e338a

Please sign in to comment.