summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-01-24 23:32:49 -0800
committerAndrew Dolgov <[email protected]>2014-01-24 23:32:49 -0800
commit221fe6c7917cd241a3d8ce9e6d33fe1e06025b69 (patch)
treebc50cb19e0cd62568a098836c8efc558ff4e50bb
parent67512a696db4b128d9de8634abb0fd05d8670824 (diff)
parenta96bb3d88ae2bc8f869c825de28ddb89851023a2 (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.php2
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]);
}