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

isset variable variable error #456

Closed
ransom85 opened this issue Jun 28, 2018 · 3 comments
Closed

isset variable variable error #456

ransom85 opened this issue Jun 28, 2018 · 3 comments

Comments

@ransom85
Copy link

I have test for exists variable variable - {if isset($rfc822Name_err_{$key})}
For smarty verison 3.1.29 code works fine. But from version 3.1.30 generated php code cause error - Undefined index: rfc822Name_err_0.
PHP source coude for 3.1.29:

tpl_vars['rfc822Name_err_'.($_smarty_tpl->tpl_vars['key']->value)]->value)) { PHP source coude for 3.1.32: tpl_vars['rfc822Name_err_'.($_smarty_tpl->tpl_vars['key']->value)]->value !== null ))) {
@chrisknerr
Copy link

chrisknerr commented Jul 19, 2018

I had the same phenomenon starting with Smarty 3.1.31 when using isset in a foreach or section loop and opened an issue about that here #453 - I think these two issues could be related because its also some kind of a var var situation.

Unfortunately I haven't found the reason of that problem myself yet but I thought if you want to subscribe to that maybe related issue too I link it for you here. 🙂

@wisskid
Copy link
Contributor

wisskid commented Jan 28, 2020

This indeed seems to be a duplicate. See #567

@wisskid
Copy link
Contributor

wisskid commented Jan 28, 2020

Duplicate of #453

@wisskid wisskid marked this as a duplicate of #453 Jan 28, 2020
@wisskid wisskid closed this as completed Jan 28, 2020
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

3 participants