Re: [SMARTY-DEV] html_options

[email protected] (Monte Ohrt) Mon, 26 Feb 2007 09:38:45 -0600
Newsgroups php.smarty.dev
Message-ID <[email protected]>
Danilo Buerger wrote:
> Ok this is a problem still to figure out however now this works 
> incorrectly as well:
>
> $smarty->assign('options', array('' => 'Please Choose',
>                                  0 => 0,
>                                  1 => 1,
>                                  2 => 2));
>
> $smarty->assign('selected', false);
>
> false should match the array key 0 but matches the empty string.

Regardless of what the best behavior is, IMHO, if someone is using
boolean "false" to try to select the "0" option from this list, they
need to fix their code.