Merge branch 'MDL-60675-33' of git://github.com/mihailges/moodle into MOODLE_33_STABLE

This commit is contained in:
Damyon Wiese
2017-11-14 17:06:45 +08:00
+2 -2
View File
@@ -1133,7 +1133,7 @@ class single_select implements renderable, templatable {
'selected' => strval($this->selected) === strval($optvalue),
];
if ($hasnothing && $nothingkey == $optvalue) {
if ($hasnothing && $nothingkey === $optvalue) {
$option['ignore'] = 'data-ignore';
}
@@ -1153,7 +1153,7 @@ class single_select implements renderable, templatable {
'optgroup' => false
];
if ($hasnothing && $nothingkey == $value) {
if ($hasnothing && $nothingkey === $value) {
$option['ignore'] = 'data-ignore';
}