mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-02 21:30:16 +09:00
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:
1 parent
27df09a1fe
commit
a7f2e41cbd
1 file changed
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user