summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-08-02 12:56:23 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-08-02 12:56:23 +0200
commit106ce3368df609584225449c910bb300c4a3e789 (patch)
tree6b77068aa8a186f2efde027e4063ad13d504d14d
parent94c35d542f54d617b5d0299c2cd0c86d0a0d8f9d (diff)
downloadnextcloud-server-106ce3368df609584225449c910bb300c4a3e789.tar.gz
nextcloud-server-106ce3368df609584225449c910bb300c4a3e789.zip
Not all apps are from the appstore
Fixes #10504 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--settings/Controller/AppSettingsController.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php
index 5930bc700d4..aa6a95c13e1 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 && $this->appManager->isInstalled($appData['id'])) {