Changing loop conditions in order to avoid an access to undef array offset
Merge pull request #8 from wnasich/master

Changing loop conditions in order to avoid an access to undef array offset