diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2012-01-27 17:34:47 +0100 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2012-01-27 17:34:47 +0100 |
commit | 05f1fffddc49678768c90104e6aeaeac2419d95d (patch) | |
tree | 3e78dbdd3c4981a9f08f4755d674332c4711aff9 /settings/apps.php | |
parent | ad4e305c964bfe159f1898e72359f9ecaf910b2d (diff) | |
download | nextcloud-server-05f1fffddc49678768c90104e6aeaeac2419d95d.tar.gz nextcloud-server-05f1fffddc49678768c90104e6aeaeac2419d95d.zip |
fix appstore download.
Diffstat (limited to 'settings/apps.php')
-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'], + ); + } } } |