Re: [SMARTY] Possible bug?

From: Date: Thu, 13 Feb 2003 08:29:35 +0000
Subject: Re: [SMARTY] Possible bug?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7711@lists.php.net to get a copy of this message
On Thu, Feb 13, 2003 at 02:50:20AM +0200, gawan wrote: > A Bug? > > I have these simple lines, that both worked fine in 2.3.1: > > {if $product->NumberOfPages}<font color="#666666"><b>Pages: > </b></font>{$product->NumberOfPages}<br>{/if} > {if $product->TitleOfSeries}<font color="#666666"><b>Series: > </b></font><a > href="search.php?TitleOfSeries={$product->TitleOfSeries}">{$product->TitleOf > Series"}</a><br>{/if} > > When upgrading to 2.4.2 the latter IF line gives an error: > > Fatal error: Smarty: [in product.tpl line 66]: syntax error: unrecognized > tag: $product->TitleOfSeries" (Smarty_Compiler.class.php, line 381) > > I can't see any syntax error? i can see one :) {$product->TitleOfSeries"}, which shoud read {$product->TitleOfSeries} HTH messju

« previous php.smarty.general (#7711) next »