From: Dave Zaikos Date: Sat, 25 Jan 2014 07:18:27 +0000 (-0500) Subject: Fixed a bug in PluginHost::del_hook() where the parameters passed to array_search... X-Git-Tag: 1.12~113^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a96bb3d88ae2bc8f869c825de28ddb89851023a2;p=tt-rss.git Fixed a bug in PluginHost::del_hook() where the parameters passed to array_search() were in the incorrect order. --- diff --git a/classes/pluginhost.php b/classes/pluginhost.php index b7b85227..472f2018 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]); }