From 428b56a12ebaa334236cfe8bc8ebeef0ef995465 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 23 May 2008 11:18:54 +0000 Subject: Fix for previous git-svn-id: https://code.elgg.org/elgg/trunk@693 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index cdcba7dda..1fe87b5b6 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -767,8 +767,8 @@ function trigger_plugin_hook($hook, $entity_type, $params = null, $returnvalue = null) { global $CONFIG; - if (!isset($CONFIG->hooks) || !isset($CONFIG->hooks[$hook]) || !isset($CONFIG->hooks[$hook][$entity_type])) - return $returnvalue; + //if (!isset($CONFIG->hooks) || !isset($CONFIG->hooks[$hook]) || !isset($CONFIG->hooks[$hook][$entity_type])) + // return $returnvalue; if (!empty($CONFIG->hooks[$hook][$entity_type]) && is_array($CONFIG->hooks[$hook][$entity_type])) { foreach($CONFIG->hooks[$hook][$entity_type] as $hookfunction) { @@ -777,8 +777,8 @@ } } - if (!isset($CONFIG->hooks['all'][$entity_type])) - return $returnvalue; + //if (!isset($CONFIG->hooks['all'][$entity_type])) + // return $returnvalue; if (!empty($CONFIG->hooks['all'][$entity_type]) && is_array($CONFIG->hooks['all'][$entity_type])) { foreach($CONFIG->hooks['all'][$entity_type] as $hookfunction) { @@ -787,8 +787,8 @@ } } - if (!isset($CONFIG->hooks[$hook]['all'])) - return $returnvalue; + //if (!isset($CONFIG->hooks[$hook]['all'])) + // return $returnvalue; if (!empty($CONFIG->hooks[$hook]['all']) && is_array($CONFIG->hooks[$hook]['all'])) { foreach($CONFIG->hooks[$hook]['all'] as $hookfunction) { @@ -797,8 +797,8 @@ } } - if (!isset($CONFIG->hooks['all']['all'])) - return $returnvalue; + //if (!isset($CONFIG->hooks['all']['all'])) + // return $returnvalue; if (!empty($CONFIG->hooks['all']['all']) && is_array($CONFIG->hooks[$hook]['all'])) { foreach($CONFIG->hooks['all']['all'] as $hookfunction) { -- cgit v1.2.3