[dev] PHP Warning in prefs

Chuck Hagenbuch chuck at horde.org
Wed Dec 6 20:51:35 PST 2006


Quoting Duck <duck at obala.net>:

> PHP Warning:  Invalid argument supplied for foreach()
> in /usr/lib/php/Horde/Prefs.php on line 717
>
> Adding another conditon in the IF above solves it.
>
> if (empty($this->_hooks[$scope]) || !is_array($this->_hooks[$scope])) {
>      return;
> }

That just ignores the hooks, which weren't properly stored in the  
hooks/scope two-level array. Fixed now, thanks. :)

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the dev mailing list