openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 97fb15594fdf3fbf5d0c3524197373c0d8268a91
parent e613a8f4f489cf6e69696d652d80cac71f0254d6
Author: dankert <devnull@localhost>
Date:   Wed, 28 Oct 2009 09:39:51 +0100

Listen-Werte als 'String' verarbeiten, damit z.B. '0' richtig verglichen wird.

Diffstat:
themes/default/include/html/selectbox.inc.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/default/include/html/selectbox.inc.php b/themes/default/include/html/selectbox.inc.php @@ -45,7 +45,7 @@ echo ' size="'.intval($attr_size).'"'; } echo '<option class="'.$attr_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr_tmp_default) + if ((string)$box_key==$attr_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>';