mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-19982 fixed notice if group empty; merged from MOODLE_19_STABLE
This commit is contained in:
parent
9b3d7e4509
commit
bae2432219
@ -499,6 +499,9 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
|
||||
$cleanValue = null;
|
||||
foreach ($value as $v) {
|
||||
foreach ($this->_optGroups as $optGroup){
|
||||
if (empty($optGroup['options'])) {
|
||||
continue;
|
||||
}
|
||||
for ($i = 0, $optCount = count($optGroup['options']); $i < $optCount; $i++) {
|
||||
if ($v == $optGroup['options'][$i]['attr']['value']) {
|
||||
$cleanValue[] = $v;
|
||||
|
Loading…
x
Reference in New Issue
Block a user