We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b83724 commit b576005Copy full SHA for b576005
src/AkauntingCollector.php
@@ -57,11 +57,13 @@ public function collect()
57
Module::all(['alias', 'enabled'])->each(function ($module) use (&$modules) {
58
$versions = Cache::get('versions');
59
60
+ $exists = $this->moduleExists($module->alias);
61
+
62
$modules[$module->alias] = [
- 'Installed Version' => module($module->alias)->get('version'),
63
+ 'Installed Version' => $exists ? module($module->alias)->get('version') : 'N/A',
64
'Latest Version' => isset($versions[$module->alias]) ? $versions[$module->alias] : 'N/A',
65
'Enabled' => $module->enabled,
- 'Exists' => $this->moduleExists($module->alias),
66
+ 'Exists' => $exists,
67
];
68
});
69
0 commit comments