summaryrefslogtreecommitdiffstats
path: root/lib/private/App/AppStore/Manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/App/AppStore/Manager.php')
-rw-r--r--lib/private/App/AppStore/Manager.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/App/AppStore/Manager.php b/lib/private/App/AppStore/Manager.php
index 1c7f09a817e..4498918da70 100644
--- a/lib/private/App/AppStore/Manager.php
+++ b/lib/private/App/AppStore/Manager.php
@@ -29,10 +29,13 @@ use OC\App\AppStore\Fetcher\AppFetcher;
class Manager {
public function __construct(AppFetcher $appFetcher) {
- $this->apps = $appFetcher->get();
+ $apps = $appFetcher->get();
+ foreach ($apps as $app) {
+ $this->apps[$app['id']] = $app;
+ }
}
public function getApp(string $appId) {
- return $this->apps;
+ return $this->apps[$appId];
}
} \ No newline at end of file