An error stops my script

Something to do with this thread perhaps? It seems I miss a few crucial issues when it comes to arrays - #3 by mabismad