mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
Merge branch 'MDL-39207_master' of git://github.com/totara/openbadges
This commit is contained in:
commit
9c898f682a
@ -78,7 +78,11 @@ if ($backpack) {
|
||||
if ($form->is_cancelled()) {
|
||||
redirect(new moodle_url('/badges/mybadges.php'));
|
||||
} else if ($data = $form->get_data()) {
|
||||
$groups = array_filter($data->group);
|
||||
if (empty($data->group)) {
|
||||
redirect(new moodle_url('/badges/mybadges.php'));
|
||||
} else {
|
||||
$groups = array_filter($data->group);
|
||||
}
|
||||
|
||||
// Remove all unselected collections if there are any.
|
||||
$sqlparams = array('backpack' => $backpack->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user