-
Notifications
You must be signed in to change notification settings - Fork 709
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 isset not working notice Undefined offset 3.1.32v and 3.1.33v #499
Comments
I have the same issue, almost (if not all) my sections broke! |
I can confirm this issue for me too. Smarty code inside |
Hi, |
Come on Smarty... surely this is what isset is for? Any plans on a fix? |
I have encountered this issue again... Here is some follow up if and workaround that I found. Use case:
After short inspection: 1. Investigation: $pa[] = (strpos($p, '(') === false) ? ('isset(' . $p . ')') : ('(' . $p . ' !== null )'); Variable 2. Workaround: Here is workaround implementation for my use case:
I hope this knowledge will help someone in Smarty team to resolve this issue. |
Duplicate of #453 |
when trying to update it happens to me in both versions and it is in a section loop
{section name=field loop=$result}
{if ((isset($result[field].changeState)) and ($role_update == "1"))}
{else}
{/if}
{/section}
template return error
smarty\ce7fa0ecf0a71469a5f7beae553a6f8123a19440_0.file.Maintenance.Dispatchers.input.tpl.php:203] Undefined index: changeState
it only happens when reading an array with section
I have the same error in several templates with different index
works well in 3.1.30v
tks
The text was updated successfully, but these errors were encountered: