Commit 3420d307 authored by Mihail Geshoski's avatar Mihail Geshoski
Browse files

MDL-60675 analytics: Apply strict comparison check

parent 55b27427
......@@ -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';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment