summaryrefslogtreecommitdiffstats
path: root/settings/js/apps.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r--settings/js/apps.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 3372d769bd3..1ae45932172 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -29,14 +29,13 @@ OC.Settings.Apps = OC.Settings.Apps || {
page.find('span.author').text(app.author);
// FIXME licenses of downloaded apps go into app.licence, licenses of not-downloaded apps into app.license
+ var appLicense = '';
if (typeof(app.licence) !== 'undefined') {
- var applicense = app.licence;
+ appLicense = app.licence;
} else if (typeof(app.license) !== 'undefined') {
- var applicense = app.license;
- } else {
- var applicense = '';
+ appLicense = app.license;
}
- page.find('span.licence').text(applicense);
+ page.find('span.licence').text(appLicense);
if (app.update !== false) {
page.find('input.update').show();