From c60a65c423e9a7f28db530900a561416daab95d2 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 24 Oct 2018 20:44:05 -0400 Subject: [PATCH] Fix unsetting non-existent index in Addon::$addons on uninstall --- src/Core/Addon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Addon.php b/src/Core/Addon.php index c3f559c708..1ec8730534 100644 --- a/src/Core/Addon.php +++ b/src/Core/Addon.php @@ -84,7 +84,7 @@ class Addon extends BaseObject $func(); } - unset(self::$addons[$idx]); + unset(self::$addons[array_search($addon, self::$addons)]); } /**