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.cookie access #122

Closed
d2one opened this issue Dec 14, 2015 · 1 comment
Closed

$smarty.cookie access #122

d2one opened this issue Dec 14, 2015 · 1 comment

Comments

@d2one
Copy link

d2one commented Dec 14, 2015

Updating from 3.1.27 to 3.1.28
Using v3.1.2.8 a have problem with cookies access
I have a cookie 'offers_favorites' => string '[7265850,7220473,7215264,7201342,7200429]' (length=41)
When i try to get this value in tpl,
{assign var='favoritesOffers' value=$smarty.cookies.offers_favorites|json_decode}
i've got an error
Warning: json_decode() expects parameter 1 to be string, array given

tpl_vars['favoritesOffers'] = new Smarty_Variable(json_decode($_COOKIE), null); I can't access to cookie key...
@uwetews
Copy link
Contributor

uwetews commented Dec 15, 2015

orry that it got broken.
The fix is now in the master branch

@uwetews uwetews closed this as completed Dec 15, 2015
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

2 participants