Permalink
Browse files

MDL-39545 mod_assign: prevent notice from displaying when course modu…

…le id does not exist
  • Loading branch information...
1 parent 95190fd commit 34e338a458b742dd9a5321be431cee06cdd6b699 @markn86 markn86 committed May 7, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/assign/locallib.php
View
@@ -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') {

0 comments on commit 34e338a

Please sign in to comment.