30.11.2010, 16:07
I don't know if foreach will fix it, but it could... I know the code I gave you above had a change in one of the loops, but other then that, I didn't see anything wrong. You should use foreach all over though, it's better!