From a96bb3d88ae2bc8f869c825de28ddb89851023a2 Mon Sep 17 00:00:00 2001 From: Dave Zaikos Date: Sat, 25 Jan 2014 02:18:27 -0500 Subject: [PATCH] Fixed a bug in PluginHost::del_hook() where the parameters passed to array_search() were in the incorrect order. --- classes/pluginhost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/pluginhost.php b/classes/pluginhost.php index b7b85227..472f2018 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -99,7 +99,7 @@ class PluginHost { function del_hook($type, $sender) { if (is_array($this->hooks[$type])) { - $key = array_Search($this->hooks[$type], $sender); + $key = array_Search($sender, $this->hooks[$type]); if ($key !== FALSE) { unset($this->hooks[$type][$key]); } -- 2.39.2