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

repeated call of {section} #118

Closed
artcs opened this issue Dec 13, 2015 · 2 comments
Closed

repeated call of {section} #118

artcs opened this issue Dec 13, 2015 · 2 comments

Comments

@artcs
Copy link

artcs commented Dec 13, 2015

In Smarty 3.1.28 when I call section more than once in a tpl, it shows a PHP Notice: Undefined index: __section_foo

{section name=foo loop=$bar}
    ...
{/section}
{section name=foo loop=$bar}
    ...
{/section}

Affected line in compiled template

$__section_foo_1_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_foo']) ? $_smarty_tpl->tpl_vars['__section_foo'] : false;
@uwetews
Copy link
Contributor

uwetews commented Dec 13, 2015

The fix is now in the master branch

@uwetews uwetews closed this as completed Dec 13, 2015
@artcs
Copy link
Author

artcs commented Dec 14, 2015

Thank you.

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