]> git.wh0rd.org Git - tt-rss.git/commitdiff
Fixed a bug in PluginHost::del_hook() where the parameters passed to array_search...
authorDave Zaikos <myself@zaikos.com>
Sat, 25 Jan 2014 07:18:27 +0000 (02:18 -0500)
committerDave Zaikos <myself@zaikos.com>
Sat, 25 Jan 2014 07:18:27 +0000 (02:18 -0500)
classes/pluginhost.php

index b7b852278e3b6bdc16e7df264b104eebac521dcb..472f201860ea1ce48844d119caa96cd50cdd771f 100644 (file)
@@ -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]);
                        }