You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the smarty 3.1.28 update, nested section loops (in either a foreach or a section) loops cause an error (undefined index). This is caused by the following line in compiled template code:
The problem arises because the code checks whether '__smarty_section_i' exists and then tries to read '__section_i', without the smarty prefix. It only occurs in nested loops, because isset returns true the second time the loop is evaluated.
PHP version: 5.5.9
Smarty version: 3.1.28
The text was updated successfully, but these errors were encountered:
Since the smarty 3.1.28 update, nested section loops (in either a foreach or a section) loops cause an error (undefined index). This is caused by the following line in compiled template code:
The problem arises because the code checks whether
'__smarty_section_i'
exists and then tries to read'__section_i'
, without the smarty prefix. It only occurs in nested loops, becauseisset
returnstrue
the second time the loop is evaluated.PHP version: 5.5.9
Smarty version: 3.1.28
The text was updated successfully, but these errors were encountered: