Fix E_NOTICE in `add_handler()`.
This commit is contained in:
parent
1870fe172b
commit
39bbbef030
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue