mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-09-22 22:10:59 +02:00
Fixed a bug in PluginHost::del_hook() where the parameters passed to array_search() were in the incorrect order.
This commit is contained in:
parent
9113e738c9
commit
a96bb3d88a
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user