On 18/09/15 17:01, Rowan Collins wrote: > > Right, so stop talking about Notices. Ignoring Notices does not get you > any closer to that goal. > > And stop lecturing me about Nulls. The is_null($foo) part of that is the > part that already works fine.
ONLY if $foo actually exists! My point here is that it's creation is optional and picking up that it does NOT in fact exist is the problem here. That the template that was passed via 'expand()' may or may not have fields that are null is the difficulty here. Be that from a database or from other methods, but this is the 'sadness' being complained about. The null tells displayed field to be empty rather than populated with $foo ... You don't want to disable expand() so the next step is handling the results of importing variables for which null is a valid state but equally their NOT having been created is equally valid. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php