Merge pull request #6024 from MrPetovan/bug/fix-disabling-addons

Fix unsetting non-existent index in Addon::$addons on uninstall
This commit is contained in:
Michael Vogel 2018-10-25 05:28:47 +02:00 committed by GitHub
commit 920ffab439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class Addon extends BaseObject
$func(); $func();
} }
unset(self::$addons[$idx]); unset(self::$addons[array_search($addon, self::$addons)]);
} }
/** /**