MDL-60675 analytics: Apply strict comparison check

This commit is contained in:
Mihail Geshoski
2017-11-14 16:31:13 +08:00
parent 244af9a0da
commit 9e2565d84d
+2 -2
View File
@@ -1137,7 +1137,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';
}
@@ -1157,7 +1157,7 @@ class single_select implements renderable, templatable {
'optgroup' => false
];
if ($hasnothing && $nothingkey == $value) {
if ($hasnothing && $nothingkey === $value) {
$option['ignore'] = 'data-ignore';
}