Hi!
In a form I've this condition: if {var:model.name} == 1 the element is visible.
The value in the db is 0 or 1.
WIth J3, CFv7, PHP7 it works, so with J4, CFv7, PHP7.
With J4, CFv7, PHP8 I receive this error:
0 - number_format(): Argument #1 ($num) must be of type float, string given
I can change 0/1 with n/y or others value, anyway I think it's a bug.
p.
In a form I've this condition: if {var:model.name} == 1 the element is visible.
The value in the db is 0 or 1.
WIth J3, CFv7, PHP7 it works, so with J4, CFv7, PHP7.
With J4, CFv7, PHP8 I receive this error:
0 - number_format(): Argument #1 ($num) must be of type float, string given
I can change 0/1 with n/y or others value, anyway I think it's a bug.
p.
Hi
Is it personal table or a joomla table in your db?
What is the field format in your table?
Is it personal table or a joomla table in your db?
What is the field format in your table?
Thanks.
Trying on one personal table with a tinynt field, using Run conditions, I haven't any error...
if {var:model.name} == 1 the element is visible.
Is there a php code?
Trying on one personal table with a tinynt field, using Run conditions, I haven't any error...
if {var:model.name} == 1 the element is visible.
Is there a php code?
Yes, it's a php code problem.
With PHP8 i need to change code like $var = number_format($var, 2, ',', '.') in $var = number_format((int)$var, 2, ',', '.').
Thank's.
With PHP8 i need to change code like $var = number_format($var, 2, ',', '.') in $var = number_format((int)$var, 2, ',', '.').
Thank's.
You need to login to be able to post a reply.