Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{$smarty.const} array issue. #1104

Open
chrisg111111 opened this issue Feb 18, 2025 · 0 comments
Open

{$smarty.const} array issue. #1104

chrisg111111 opened this issue Feb 18, 2025 · 0 comments

Comments

@chrisg111111
Copy link

Based on my tests, I think the fact that you can declare arrays as const got missed by smarty. When using {$smarty.const.USER.username} I always receive the message Array to string conversion. Checking the compiled template, I see the check for defined and the wish to html escape the const in form of a string, even it might be an array in some cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant