nocte
Well-known member
- Affected version
- XF 2.2.10 Patch 1
If you have this if condition in a template:
then the compiled PHP code looks like this:
It would be expected that nothing was printed, but because of falsely set brackets (
Origin: https://xenforo.com/community/threads/conditional-statements-for-xenforo-2.136639/post-1585691
HTML:
<xf:if is="(!(FALSE OR TRUE OR TRUE))">
FTT.
</xf:if>
then the compiled PHP code looks like this:
PHP:
if (!(false OR true) OR true) {
$__finalCompiled .= '
FTT.
';
It would be expected that nothing was printed, but because of falsely set brackets (
!(false OR true)
, the outcome is different.Origin: https://xenforo.com/community/threads/conditional-statements-for-xenforo-2.136639/post-1585691