[dev] Patch for hooks in Prefs.php
Jon Parise
jon at horde.org
Thu May 15 16:18:02 PDT 2003
On Thu, May 15, 2003 at 01:23:53PM -0500, Jason Rust wrote:
> The patch below fixes a bug whereby having 'hook' => false in a pref
> was not turning off the hook.
[snip]
> - if (isset($pvals['hook'])) {
> + if (isset($pvals['hook']) && $pvals['hook']) {
Or better:
if (!empty($pvals['hook'])) {
--
Jon Parise (jon at horde.org) :: The Horde Project (http://horde.org/)
More information about the dev
mailing list