[dev] Re: [cvs] commit: framework/Util Util.php

Chuck Hagenbuch chuck at horde.org
Mon Mar 8 11:15:34 PST 2004


Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:

> Huh.  Any reason why you are checking for an empty parameter then? I 
> personally can't think of a reason why an empty parameter would be 
> useful (i.e. checking whether a parameter exists vs. checking if a 
> parameter is empty _should_ produce the same results).

No. There are plenty of cases where we want to consider 0 valid, but an empty
parameter/no parameter invalid. Horde_Form's validation checks for this, for
instance. And the distinction *is* important. I can get into the details with
select lists and valid input sets if you really need me to.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez


More information about the dev mailing list