while in theory true, in looking at the code, i would say the template is at fault.
this rudimentary error would easily have been caught if in fact it was part of a generic ZC install and would not be part of the base.
this line here:
https://github.com/zencart/zencart/b...efault.php#L16
in the default template ensures that the foreach does not get run.
whether this specific template has that check remains to be seen.
as to whether initializing an empty array to ensure an error does not happen on a particular template.... meh.
as to refactoring the whole repo so that all vars get properly initialized (and then remove all the count and empty checks), could be an interesting discussion that i doubt will prove fruitful....
Bookmarks