aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sidebar')
-rw-r--r--templates/sidebar/room-search-criteria.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/templates/sidebar/room-search-criteria.php b/templates/sidebar/room-search-criteria.php
index 3ccaae1..3830681 100644
--- a/templates/sidebar/room-search-criteria.php
+++ b/templates/sidebar/room-search-criteria.php
@@ -64,14 +64,11 @@
<?= htmlReady($criteria['title']) ?>
<select name="<?= htmlReady($criteria['name']) ?>">
<? if (is_array($criteria['options'])): ?>
- <? foreach ($criteria['options'] as $title):
- $chunks = explode('--', $title, 2);
- $value = $chunks[1] ?? $chunks[0];
- ?>
- <option value="<?= htmlReady($value) ?>"
- <?= $value == $criteria['value'] ? 'selected' : '' ?>
+ <? foreach ($criteria['options'] as $title): ?>
+ <option value="<?= htmlReady($title) ?>"
+ <?= $title == $criteria['value'] ? 'selected' : '' ?>
>
- <?= htmlReady($chunks[0]) ?>
+ <?= htmlReady($title) ?>
</option>
<? endforeach ?>
<? endif ?>