Browse Source

Fixed a bug in PluginHost::del_hook() where the parameters passed to array_search() were in the incorrect order.

Dave Zaikos 10 years ago
parent
commit
a96bb3d88a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/pluginhost.php

+ 1 - 1
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]);
 			}