Skip to content

Commit

Permalink
check if extra module exists before update
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Feb 3, 2021
1 parent 031f1a1 commit 3879e0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Listeners/Module/UpdateExtraModules.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ public function handle(Event $event)
continue;
}

$installed_version = module_version($alias);
$extra_module = module($alias);

if (empty($extra_module)) {
continue;
}

$installed_version = $extra_module->get('version');
$latest_version = Versions::latest($alias);

// Skip if no update available
Expand Down

0 comments on commit 3879e0c

Please sign in to comment.