{if @in_array()} Problem....

From: Date: Sat, 15 Feb 2003 00:47:11 +0000
Subject: {if @in_array()} Problem....
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-699@lists.php.net to get a copy of this message
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.0 PHP 4.3.0 Thanks, Steve

« previous php.smarty.dev (#699) next »