Skip to content
Snippets Groups Projects
Commit c08e85bf authored by Robin Appelman's avatar Robin Appelman
Browse files

dont throw errors if we cant connect to the apps repository

parent 6096568d
No related branches found
No related tags found
No related merge requests found
......@@ -46,16 +46,19 @@ foreach($registeredApps as $app){
}
}
$categories=array_keys(OC_OCSClient::getCategories());
$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'],
);
$catagoryNames=OC_OCSClient::getCategories();
if(is_array($catagoryNames)){
$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'],
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment