From 30161129f50d9e47d256c8687517b6a6c9088974 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Tue, 14 Nov 2017 16:33:34 +0800 Subject: [PATCH] MDL-60675 analytics: Apply strict comparison check --- lib/outputcomponents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 91c878eda44..fc369d21549 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -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'; }