Explorar el Código

Fix selected check

Alan Lam hace 2 años
padre
commit
f0abb47a87
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      engine/form.php

+ 1 - 1
engine/form.php

@@ -299,7 +299,7 @@ class Form {
 			<?php
 			foreach($options->values as $index => $value) {
 				$display = $options->displayStrings[$index];
-				$selected = ($selected_value === (string) $value) ? "selected" : "";
+				$selected = ((string) $selected_value === (string) $value) ? "selected" : "";
 				?>
 				<option value="<?=htmlspecialchars($value)?>" <?=$selected?>><?=htmlspecialchars($display)?></option>
 				<?php