Re: [SMARTY-DEV] Problem with counter and print="false"
| From: | Monte Ohrt | Date: | Tue, 20 Jan 2004 17:07:54 +0000 |
| Subject: | Re: [SMARTY-DEV] Problem with counter and print="false" | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2048@lists.php.net to get a copy of this message | ||
We should probably typecast the print parameter to boolean so quoted
values work correctly.
On Tue, 2004-01-20 at 10:45, messju mohr wrote:
> On Tue, Jan 20, 2004 at 05:30:11PM +0100, Katana wrote:
> > Hello,
> >
> > I have several scripts with counter and print="false" (the counter value
> > is printed several times, and incremented once without being printed).
> >
> > But with Smarty 2.6.X (tested with .0 and .1), the value is displayed
> > even with print="false".
> >
> > Could you confirm that behaviour ?
>
> the attribute should be ' print=false ' not ' print="false" '
>
> "false" would be a string and become true when casted to bool.
>
> > Katana
> >
> > --
> > Smarty Development Mailing List (http://smarty.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php