summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings/js/apps.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 2093242032a..f0e40232ee0 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -277,7 +277,9 @@ OC.Settings.Apps = OC.Settings.Apps || {
$(document).ready(function(){
$('#app-navigation ul li').each(function(index,li){
var app = OC.get('appData_'+$(li).data('id'));
- app.groups= $(li).data('groups') || [];
+ if (app) {
+ app.groups= $(li).data('groups') || [];
+ }
$(li).data('app',app);
$(this).find('span.hidden').remove();
});