diff options
author | Andrew Dolgov <[email protected]> | 2014-01-24 23:32:49 -0800 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-01-24 23:32:49 -0800 |
commit | 221fe6c7917cd241a3d8ce9e6d33fe1e06025b69 (patch) | |
tree | bc50cb19e0cd62568a098836c8efc558ff4e50bb | |
parent | 67512a696db4b128d9de8634abb0fd05d8670824 (diff) | |
parent | a96bb3d88ae2bc8f869c825de28ddb89851023a2 (diff) |
Merge pull request #341 from dzaikos/master
Fixed a bug in PluginHost::del_hook() where the parameters passed to arr...
-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]); } |