Weedpacket wrote:What does the notice say? "Undefined variable"? If that's the case you should be checking to see that the variable is even set before trying to determine the type that it's set to.
If I remember correctly the the notice was "Undefined variable". And that is the problem. It doesnt allways exist. This is an object generated by the XML import. So I dont really have control if it exist exist or not. That is what I'm trying to check :bemused:
About using the @. I would probably do it in production, but I prefere getting rid of the "problem" instead of supressing it 🙂 Its not really correct to call it a problem, its just anoying hehe.