From cef302db7bf21a5bdb64bc602c4d8093e1487ce0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 24 May 2003 14:25:13 +0000 Subject: [PATCH] Fix for methode-hooks with no return-value --- phpgwapi/inc/class.hooks.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/class.hooks.inc.php b/phpgwapi/inc/class.hooks.inc.php index 14bf4cabfd..c5360ac542 100644 --- a/phpgwapi/inc/class.hooks.inc.php +++ b/phpgwapi/inc/class.hooks.inc.php @@ -77,6 +77,11 @@ foreach($order as $appname) { $results[$appname] = $this->single($args,$appname,$no_permission_check); + + if (!isset($results[$appname])) // happens if the methode hook has no return-value + { + $results[$appname] = False; + } } /* Then add the rest */