I showed where the problem is and after var_dump all I get is NULL. I just sent the code cause I thought it would be easier to see it in context, not to make somebody trawl trough it. If its not an array how to find out what it is? What can I do about it? Thanks. Rodrigo