diff --git a/classes/pluginhost.php b/classes/pluginhost.php index b7b852278e3b6bdc16e7df264b104eebac521dcb..472f201860ea1ce48844d119caa96cd50cdd771f 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]); }