From 39bbbef030ff38e69031efabb65243d273c614bc Mon Sep 17 00:00:00 2001
From: JustAMacUser <myself-cmsmxc3e@zaikos.com>
Date: Mon, 15 Mar 2021 16:20:38 -0400
Subject: [PATCH] Fix E_NOTICE in `add_handler()`.

---
 classes/pluginhost.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
 			}
 
-- 
GitLab