From: Hypolite Petovan Date: Thu, 25 Oct 2018 00:44:05 +0000 (-0400) Subject: Fix unsetting non-existent index in Addon::$addons on uninstall X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c60a65c423e9a7f28db530900a561416daab95d2;p=friendica.git Fix unsetting non-existent index in Addon::$addons on uninstall --- 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)]); } /**