1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-28 12:10:52 +02:00

Merge pull request #341 from dzaikos/master

Fixed a bug in PluginHost::del_hook() where the parameters passed to arr...
This commit is contained in:
Andrew Dolgov 2014-01-24 23:32:49 -08:00
commit 221fe6c791

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