diff options
author | Dave Zaikos <[email protected]> | 2014-01-25 02:18:27 -0500 |
---|---|---|
committer | Dave Zaikos <[email protected]> | 2014-01-25 02:18:27 -0500 |
commit | a96bb3d88ae2bc8f869c825de28ddb89851023a2 (patch) | |
tree | ec58a7ba0aab9d23b446dc9ffec83bb1df624a46 | |
parent | 9113e738c95777c4e3900709afa904321d732995 (diff) |
Fixed a bug in PluginHost::del_hook() where the parameters passed to array_search() were in the incorrect order.
-rw-r--r-- | classes/pluginhost.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php index b7b852278..472f20186 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]); } |