MDL-60675 analytics: Apply strict comparison check
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user