Merge branch 'MDL-36655' of git://github.com/netspotau/moodle-mod_assign

This commit is contained in:
Dan Poltawski
2012-11-19 15:01:48 +08:00
+3 -1
View File
@@ -3966,7 +3966,9 @@ class assign {
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);
}
}