diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/apps.php | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/settings/apps.php b/settings/apps.php index 40b72639cd6..0889b0c45ed 100644 --- a/settings/apps.php +++ b/settings/apps.php @@ -57,14 +57,22 @@ usort($apps, 'app_sort'); $categories=array_keys($catagoryNames); $externalApps=OC_OCSClient::getApplications($categories); foreach($externalApps as $app){ - $apps[]=array( - 'name'=>$app['name'], - 'id'=>$app['id'], - 'active'=>false, - 'description'=>$app['description'], - 'author'=>$app['personid'], - 'license'=>$app['license'], - ); + // show only external apps that are not exist yet + $local=false; + foreach($apps as $a){ + if($a['name']==$app['name']) $local=true; + } + + if(!$local) { + $apps[]=array( + 'name'=>$app['name'], + 'id'=>$app['id'], + 'active'=>false, + 'description'=>$app['description'], + 'author'=>$app['personid'], + 'license'=>$app['license'], + ); + } } } |