summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorJustAMacUser <[email protected]>2021-03-15 16:20:38 -0400
committerJustAMacUser <[email protected]>2021-03-15 16:20:38 -0400
commit39bbbef030ff38e69031efabb65243d273c614bc (patch)
treed4d19fd33a6e3444ccc5bc0af39fa06cc0fc5757 /classes/pluginhost.php
parent1870fe172b41061899c1917303a494d5e567f1bf (diff)
Fix E_NOTICE in `add_handler()`.
Diffstat (limited to 'classes/pluginhost.php')
-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();
}