Skip to content

Commit b576005

Browse files
committed
checking module existence fixed
1 parent 4b83724 commit b576005

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AkauntingCollector.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ public function collect()
5757
Module::all(['alias', 'enabled'])->each(function ($module) use (&$modules) {
5858
$versions = Cache::get('versions');
5959

60+
$exists = $this->moduleExists($module->alias);
61+
6062
$modules[$module->alias] = [
61-
'Installed Version' => module($module->alias)->get('version'),
63+
'Installed Version' => $exists ? module($module->alias)->get('version') : 'N/A',
6264
'Latest Version' => isset($versions[$module->alias]) ? $versions[$module->alias] : 'N/A',
6365
'Enabled' => $module->enabled,
64-
'Exists' => $this->moduleExists($module->alias),
66+
'Exists' => $exists,
6567
];
6668
});
6769

0 commit comments

Comments
 (0)