fix to let html::select difference between '' and 0

This commit is contained in:
Ralf Becker 2003-04-13 16:01:29 +00:00
parent 2fca3a3cb6
commit 565199d6e1

View File

@ -64,7 +64,7 @@ class html
while (list($k,$text) = each($arr))
{
$out .= '<option value="'.$k.'"';
if($k == $key || strstr(",$key,",",$k,"))
if("$k" == "$key" || strstr(",$key,",",$k,"))
{
$out .= " SELECTED";
}