]> git.mxchange.org Git - friendica.git/commitdiff
Fix unsetting non-existent index in Addon::$addons on uninstall
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 25 Oct 2018 00:44:05 +0000 (20:44 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 25 Oct 2018 00:44:05 +0000 (20:44 -0400)
src/Core/Addon.php

index c3f559c7087720ae972df14c341039f718045f58..1ec8730534e88272f6942901ee690f88461b2897 100644 (file)
@@ -84,7 +84,7 @@ class Addon extends BaseObject
                        $func();
                }
 
-               unset(self::$addons[$idx]);
+               unset(self::$addons[array_search($addon, self::$addons)]);
        }
 
        /**