[BUGFIX] Properly check TS conditions with key '0' 50/35950/2
authorChristian Futterlieb <christian@futterlieb.ch>
Thu, 8 Jan 2015 18:21:09 +0000 (19:21 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 10 Jan 2015 21:52:18 +0000 (22:52 +0100)
commit94d64d9a8f35d9e35db8e3ca87b0bdc82a7e0502
tree65ece138fb933f7854c403cb8ade910be810e035
parentcff403a8b1a71d78631801da26a1e396b1caac25
[BUGFIX] Properly check TS conditions with key '0'

Global vars and strings from array expressions with key '0' must be
checked correctly in TS conditions.
E.g. when using [globalVar = GP:myoption|0 = 1] the 0 is now
correctly evaluated.

Resolves: #64192
Releases: master, 6.2
Change-Id: I1100042670ffd458dfb81e6a6eac126dbc01a531
Reviewed-on: http://review.typo3.org/35950
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php
typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php