summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2021-03-16 07:15:40 +0300
committerfox <[email protected]>2021-03-16 07:15:40 +0300
commitc134aa387dbc4e7d7c175c7a42e0d5939e0cf065 (patch)
tree3108639eccc7d45f7b4dbeada3e4123b2b52f17e
parentf81a57938668f25b3118a36e7865dfcdc34439c7 (diff)
parent39bbbef030ff38e69031efabb65243d273c614bc (diff)
Merge pull request 'Fix E_NOTICE in add_handler().' (#20) from JustAMacUser/tt-rss:fix-addhandler-notice into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/20
-rwxr-xr-xclasses/pluginhost.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 17d1e0c5f..6fbc13a9c 100755
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -352,7 +352,7 @@ class PluginHost {
$method = strtolower($method);
if ($this->is_system($sender)) {
- if (!is_array($this->handlers[$handler])) {
+ if (!isset($this->handlers[$handler])) {
$this->handlers[$handler] = array();
}