Jeff-Lewis / smarty-php

Automatically exported from code.google.com/p/smarty-php
0 stars 0 forks source link

Iterations throw notices #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With enabled notices reporting any iteration will throw notices.
I have attached a small fix.

Best regards,
Lajos Veres

Original issue reported on code.google.com by vla...@gmail.com on 23 Oct 2014 at 1:26

Attachments:

GoogleCodeExporter commented 9 years ago
I think you must have assigned a new value to the $item variable within the 
foreach loop. This is not permitted as it will break all $item@properties.

Was this the case?

Original comment by Uwe.Tews@googlemail.com on 24 Oct 2014 at 1:33

GoogleCodeExporter commented 9 years ago
See also https://code.google.com/p/smarty-php/issues/detail?id=208

Original comment by Uwe.Tews@googlemail.com on 24 Oct 2014 at 1:34

GoogleCodeExporter commented 9 years ago
Thank you. You are right... :-)

Best regards,
Lajos

Original comment by vla...@gmail.com on 24 Oct 2014 at 10:18

GoogleCodeExporter commented 9 years ago
The fix is now on Github at https://github.com/smarty-php/smarty in the master 
branch.
It will be included later in the 3.1.14 release.

Preferred location to report issues will be 
https://github.com/smarty-php/smarty/issues 

Original comment by Uwe.Tews@googlemail.com on 13 May 2015 at 6:23