diff --git a/CHANGELOG.md b/CHANGELOG.md index 15bc366..e8292ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - XXXX-XX-XX - Fix Twig error on migration_status page +- Check method existence before calling uninstall on custom assets ## [3.0.0 End-of-Life Updater] - 2025-30-09 diff --git a/hook.php b/hook.php index 90a3b51..88d83bb 100644 --- a/hook.php +++ b/hook.php @@ -91,7 +91,7 @@ function plugin_genericobject_uninstall() //For each type foreach (PluginGenericobjectType::getTypes(true) as $tmp => $value) { $itemtype = $value['itemtype']; - if (class_exists($itemtype)) { + if (class_exists($itemtype) && method_exists($itemtype, 'uninstall')) { $itemtype::uninstall(); } }