Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
4.0.0, 4.2.0, 4.3.0beta1
-
None
Description
The following code will give an error when the ini variable is undefined:
{if and( ezini_hasvariable( 'Custom_block', 'Required', 'content.ini' ), ezini( 'Custom_block', 'Required', 'content.ini' )|eq('true') )} do something {/if}
But this will not:
{if ezini_hasvariable( 'Custom_block', 'Required', 'content.ini' )} {if ezini( 'Custom_block', 'Required', 'content.ini' )|eq('true')} do something {/if} {/if}
Error: eZTemplate:ezini
!!!No such variable 'Required' in group 'Custom_block' for content.ini
Attachments
Issue Links
- is duplicated by
-
EZP-19034 optimize/improve AND logic operator in template language
- Open