From: x2000habouzit Date: Sun, 21 Nov 2004 12:20:22 +0000 (+0000) Subject: smarter X-Git-Tag: xorg/old~874 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b7a716a1949e5db03fae8662f4522f954fb0ab2e;p=platal.git smarter --- diff --git a/include/xorg.hook.inc.php b/include/xorg.hook.inc.php index 511876f..d0181e4 100644 --- a/include/xorg.hook.inc.php +++ b/include/xorg.hook.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: xorg.hook.inc.php,v 1.2 2004-11-20 22:46:29 x2000habouzit Exp $ + $Id: xorg.hook.inc.php,v 1.3 2004-11-21 12:20:22 x2000habouzit Exp $ ***************************************************************************/ require_once("PEAR.php"); @@ -58,12 +58,14 @@ class XOrgHook extends PEAR function __call($function, $arguments, &$return) { + $return = true; + foreach ($this->_mods as $mod) { if (!function_exists($mod.'_'.$function)) continue; - call_user_func_array($mod.'_'.$function,$argument); + $return &= ( call_user_func_array($mod.'_'.$function,$argument) !== false ); } - - return ($return=true); + + return true; } }