Skip to content
Snippets Groups Projects
Commit 39bbbef0 authored by JustAMacUser's avatar JustAMacUser
Browse files

Fix E_NOTICE in `add_handler()`.

parent 1870fe17
No related branches found
No related tags found
No related merge requests found
...@@ -352,7 +352,7 @@ class PluginHost { ...@@ -352,7 +352,7 @@ class PluginHost {
$method = strtolower($method); $method = strtolower($method);
if ($this->is_system($sender)) { if ($this->is_system($sender)) {
if (!is_array($this->handlers[$handler])) { if (!isset($this->handlers[$handler])) {
$this->handlers[$handler] = array(); $this->handlers[$handler] = array();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment