[dev] RDO empty check

Chuck Hagenbuch chuck at horde.org
Tue Jan 29 18:53:56 UTC 2008


Quoting Duck <duck at obala.net>:

> Chuck, I don't know where to look but trying an empty() check on a RDO object
> always return true even the property has some value.

This seems to be a side effect of using __get. As an alternative you  
can do if ($ob->key) with no notices - also because of using __get.

-chuck


More information about the dev mailing list