cubecart / v6

CubeCart Version 6
https://cubecart.com
73 stars 57 forks source link

Deprecated #3412

Closed bhsmither closed 7 months ago

bhsmither commented 12 months ago

With respect to #3204, where the code was changed to use the following syntax:

{ucwords($MAINARRAY.element)}

for the value attribute of a form input element. When that form is being used to add a new whatever, the value will be null and PHP will complain about Deprecated: Passing null to parameter #1 when executing the compiled template.

Suggest not using ucwords() in the template, but in the core code instead.

Specific example: orders.index.php, lines 318, 319, 321, 322, 363, and 364.

bhsmither commented 12 months ago

For those specific lines above, I did this, for example:

value="{ucwords((string)$SUMMARY.first_name)}"