mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-23 11:28:33 +01:00
compile_tag_if had the flawed approach of adding an isset statement for all variables to the beginning of the if. This fails for negative expressions, and checking those takes a considerable effort. The easier solution is to make the variable expression itself conditional, defaulting to null if it is not set. Thanks to naderman for the solution. PHPBB3-9726
24 lines
315 B
HTML
24 lines
315 B
HTML
<!-- IF S_FALSE -->
|
|
fail
|
|
<!-- ENDIF -->
|
|
<!-- IF S_TRUE -->
|
|
pass
|
|
<!-- ENDIF -->
|
|
<!-- IF S_FALSE -->
|
|
fail
|
|
<!-- ELSEIF S_FALSE and not S_TRUE -->
|
|
fail
|
|
<!-- ELSE -->
|
|
pass
|
|
<!-- ENDIF -->
|
|
<!-- BEGIN empty -->
|
|
fail
|
|
<!-- BEGINELSE -->
|
|
pass
|
|
<!-- END empty -->
|
|
<!-- IF not S_EMPTY -->
|
|
pass
|
|
<!-- ENDIF -->
|
|
|
|
<!-- DUMMY var -->
|