Re: [SMARTY] {if @in_array()} Problem....
| From: | Monte Ohrt | Date: | Sun, 16 Feb 2003 07:13:56 +0000 |
| Subject: | Re: [SMARTY] {if @in_array()} Problem.... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7784@lists.php.net to get a copy of this message | ||
This will have to be patched, probably within a day or two.
Monte
Steve wrote:
I use the following check extensively in my templates: {if @in_array(22,$smarty.session.operations)} {/if} It now generates the following error: Fatal error: Smarty: [in admin/admin.tpl line 27]: syntax error: unidentified token '@in_array(22,$smarty.session.operations)' (Smarty_Compiler.class.php, line 1202) in /var/www/html/bw/inc/lib/smarty/Smarty_Compiler.class.php on line 1818 Please tell me I can use php functions with error reporting suppressed in templates still... Using: Smarty 2.4.2 PHP 4.3.0 Thanks, Steve