summaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/components/select.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/components/select.phtml b/resources/views/components/select.phtml
index b7023ceb60..209ba44926 100644
--- a/resources/views/components/select.phtml
+++ b/resources/views/components/select.phtml
@@ -17,7 +17,7 @@
<?= is_array($selected) ? 'multiple' : '' ?>
>
<?php foreach ($options as $key => $value) : ?>
- <option value="<?= e((string) $key) ?>" <?= is_array($selected) && in_array($key, $selected, false) || $key == $selected ? 'selected' : '' ?>>
+ <option value="<?= e((string) $key) ?>" <?= is_array($selected) && in_array($key, $selected, false) || (string) $key === (string) $selected ? 'selected' : '' ?>>
<?= e($value) ?>
</option>
<?php endforeach ?>