Skip to content

Commit 7de0141

Browse files
authored
Fix - Check method existence before calling uninstall on custom assets (#460)
* Fix - Check method existence before calling uninstall on custom assets * Update CHANGELOG
1 parent 2f1e3a8 commit 7de0141

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased] - XXXX-XX-XX
99

1010
- Fix Twig error on migration_status page
11+
- Check method existence before calling uninstall on custom assets
1112

1213
## [3.0.0 End-of-Life Updater] - 2025-30-09
1314

hook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function plugin_genericobject_uninstall()
9191
//For each type
9292
foreach (PluginGenericobjectType::getTypes(true) as $tmp => $value) {
9393
$itemtype = $value['itemtype'];
94-
if (class_exists($itemtype)) {
94+
if (class_exists($itemtype) && method_exists($itemtype, 'uninstall')) {
9595
$itemtype::uninstall();
9696
}
9797
}

0 commit comments

Comments
 (0)