Fix for historical reason

This commit is contained in:
Pig Fang 2019-08-16 14:46:55 +08:00
parent 372c7768d0
commit 857827bcdc

View File

@ -75,6 +75,9 @@ class PluginManager
}
$this->enabled = collect(json_decode($this->option->get('plugins_enabled', '[]'), true))
->reject(function ($item) {
return is_string($item);
})
->mapWithKeys(function ($item) {
return [$item['name'] => ['version' => $item['version']]];
});