[dev] Patch for hooks in Prefs.php

Jason Rust jrust at rustyparts.com
Thu May 15 11:23:53 PDT 2003


The patch below fixes a bug whereby having 'hook' => false in a pref 
was not turning off the hook.

-Jason

Index: Prefs.php
===================================================================
RCS file: /repository/horde/lib/Prefs.php,v
retrieving revision 1.106
diff -u -r1.106 Prefs.php
--- Prefs.php   28 Apr 2003 19:31:17 -0000      1.106
+++ Prefs.php   15 May 2003 18:17:09 -0000
@@ -299,7 +299,7 @@
                 $mask |= _PREF_DEFAULT;

                 $this->add($pref, $pvals['value'], $mask);
-                if (isset($pvals['hook'])) {
+                if (isset($pvals['hook']) && $pvals['hook']) {
                     $this->_setHook($pref);
                 }
             }



More information about the dev mailing list