[dev] Re: [cvs] commit: framework/Horde/Horde Config.php

Eric Rostetter eric.rostetter at physics.utexas.edu
Sun Feb 29 20:41:21 PST 2004


Quoting Jan Schneider <jan at horde.org>:

>>>     Horde/Horde          Config.php
>>>   Log:
>>>   Create empty array() entries for all configsections.
>>
[...]
> Yeah, that's bad. So, how to solve the $conf[...]['params'] problem? Simply
> using '@' to silence all calls to this eventually not defined array?

Or instead of inserting the blind "$conf[...] = array();" you could do the
(higher overhead) version "if (!is_array($conf[...])) { $conf[...] = 
array(); }"
instead.

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!



More information about the dev mailing list