diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-08-02 19:32:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 19:32:51 +0200 |
commit | 9057621d64589d1a45040e9dfbf87dd908e9acbb (patch) | |
tree | fc26719bf9c9558d3a832d4330c0bc24370880a4 /settings | |
parent | 8d08cfc87f4d38705d9c1cb5d7717700055bc0fd (diff) | |
parent | 106ce3368df609584225449c910bb300c4a3e789 (diff) | |
download | nextcloud-server-9057621d64589d1a45040e9dfbf87dd908e9acbb.tar.gz nextcloud-server-9057621d64589d1a45040e9dfbf87dd908e9acbb.zip |
Merge pull request #10506 from nextcloud/fix/10504/not_all_apps_are_appstore
Not all apps are from the appstore
Diffstat (limited to 'settings')
-rw-r--r-- | settings/Controller/AppSettingsController.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index 61db1ce2697..faa63e67300 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -251,9 +251,11 @@ class AppSettingsController extends Controller { // Extend existing app details $apps = array_map(function($appData) use ($dependencyAnalyzer) { - $appstoreData = $appData['appstoreData']; - $appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/'.base64_encode($appstoreData['screenshots'][0]['url']) : ''; - $appData['category'] = $appstoreData['categories']; + if (isset($appData['appstoreData'])) { + $appstoreData = $appData['appstoreData']; + $appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/' . base64_encode($appstoreData['screenshots'][0]['url']) : ''; + $appData['category'] = $appstoreData['categories']; + } $newVersion = $this->installer->isUpdateAvailable($appData['id']); if($newVersion) { |