From 05f1fffddc49678768c90104e6aeaeac2419d95d Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Fri, 27 Jan 2012 17:34:47 +0100 Subject: fix appstore download. --- settings/apps.php | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'settings/apps.php') 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'], + ); + } } } -- cgit v1.2.3