Fix for 1 code quality finding (#3263)

Apply suggested fix to src/modules/Widgets/Service.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Adam DaleyandCopilot Autofix powered by AI authored and GitHub committed 2026-02-25 08:49:46 +00:00
1 parent 27df09a1fe
commit a7f2e41cbd
1 file changed
+1 -1
+1 -1
View File
@@ -193,7 +193,7 @@ class Service implements InjectionAwareInterface
$di = $event->getDi();
$ext = $di['db']->load('extension', $params['id']);
if (is_object($ext) && $ext->type === 'mod') {
if (is_object($ext) && isset($ext->type) && $ext->type === 'mod') {
$di['mod_service']('Widgets')->invalidateCache();
}
}