summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorDave Zaikos <[email protected]>2014-01-25 02:18:27 -0500
committerDave Zaikos <[email protected]>2014-01-25 02:18:27 -0500
commita96bb3d88ae2bc8f869c825de28ddb89851023a2 (patch)
treeec58a7ba0aab9d23b446dc9ffec83bb1df624a46 /classes/pluginhost.php
parent9113e738c95777c4e3900709afa904321d732995 (diff)
Fixed a bug in PluginHost::del_hook() where the parameters passed to array_search() were in the incorrect order.
Diffstat (limited to 'classes/pluginhost.php')
-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]);
}