[ic] Safe error
Stefan Hornburg (Racke)
racke at linuxia.de
Sun Sep 27 17:37:45 UTC 2015
On 09/27/2015 06:24 PM, DB wrote:
> Although the below code from my flypage seems to work, it causes error
> log entries like:
>
> Store /cgi-bin/Store/SKU.html Safe: syntax error at (eval 2087) line 1,
> near ">"
>>
>> > 0
>>
>
> The code is:
>
> [if type=explicit compare="[calc][data table=sku_notes
> column=added_charge key=[item-field sku]] > 0[/calc]"]
>
> NOTE: Added charge: [currency][data table=sku_notes column=added_charge
> key=[item-field sku]]
> [/currency]
>
> [/if]
>
> As I said the code works, but I'd prefer less error log activity. Does
> anyone have a suggestion?
[tmp added_charge][data table=sku_notes column=added_charge key=[item-field sku]][/tmp]
[if scratch added_charge > 0]NOTE: Added charge: [currency][scratch added_charge][/currency][/if]
saves you a db query :-). Maybe the error goes away as well :-).
It looks like added_charge can be an empty string - which doesn't make sense to me.
Regards
Racke
--
Perl and Dancer Development
Visit our Perl::Dancer conference 2015.
More information on https://www.perl.dance.
More information about the interchange-users
mailing list