[dev] Re: [cvs] commit: horde/lib Browser.php

Jan Schneider jan at horde.org
Sun Dec 8 23:57:54 2002


Zitat von Chuck Hagenbuch <chuck@horde.org>:

> Quoting Jan Schneider <jan@ammma.de>:
> 
> >   Log:
> >   Check if additional parameters have been provided.
> 
> This could be done a bit more cleanly by defaulting $params to an empty
> array instead of null...

It _is_ actually, but if we call this function with 'null' as a parameter,
it will be null not array(). I just put the check here for convenience so
that you don't have to think about what type of this parameter should be if
you just want to skip it.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list