Browse files

Merge branch 'MDL-36655-m23' of git://github.com/netspotau/moodle-mod…

…_assign into MOODLE_23_STABLE
  • Loading branch information...
2 parents 682661d + 62d70e0 commit 21c255093d4374c24bff08805774bc82ba058f31 @danpoltawski danpoltawski committed Nov 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/assign/locallib.php
View
4 mod/assign/locallib.php
@@ -3050,7 +3050,9 @@ public function add_grade_form_elements(MoodleQuickForm $mform, stdClass $data,
if (!$last){
$buttonarray[] = $mform->createElement('submit', 'nosaveandnext', get_string('nosavebutnext', 'assign'));
}
- $mform->addGroup($buttonarray, 'navar', '', array(' '), false);
+ if (!empty($buttonarray)) {
+ $mform->addGroup($buttonarray, 'navar', '', array(' '), false);
+ }
}

0 comments on commit 21c2550

Please sign in to comment.