On Wed, Apr 20, 2011 at 12:37 PM, Vincent Lechemin
<[email protected]> wrote:
> I'm trying to differentiate an inexistant key of an array from an
> existant one with 0 as value.
>
> An example will explain it better:
> {% set test = { 'ok' : 0 } %} {{ test.ok is defined ? 'ok' : 'ko' }
> outputs: ko
>
> From my understanding of the documentation, it should return 'ok'. Did
> i get it wrong?

This is a known bug, and it should be fixed soon [1][2].

That being said, this is not really the place, please use the
twig-users mailing list, or at least symfony-users.

Cheers

[1] https://github.com/fabpot/Twig/issues/307
[2] https://github.com/fabpot/Twig/pull/305

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to