dont throw errors if we cant connect to the apps repository
This commit is contained in:
parent
6096568da9
commit
c08e85bf70
|
@ -46,16 +46,19 @@ foreach($registeredApps as $app){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$categories=array_keys(OC_OCSClient::getCategories());
|
$catagoryNames=OC_OCSClient::getCategories();
|
||||||
$externalApps=OC_OCSClient::getApplications($categories);
|
if(is_array($catagoryNames)){
|
||||||
foreach($externalApps as $app){
|
$categories=array_keys($catagoryNames);
|
||||||
$apps[]=array(
|
$externalApps=OC_OCSClient::getApplications($categories);
|
||||||
'name'=>$app['name'],
|
foreach($externalApps as $app){
|
||||||
'id'=>$app['id'],
|
$apps[]=array(
|
||||||
'active'=>false,
|
'name'=>$app['name'],
|
||||||
'description'=>$app['description'],
|
'id'=>$app['id'],
|
||||||
'author'=>$app['personid'],
|
'active'=>false,
|
||||||
);
|
'description'=>$app['description'],
|
||||||
|
'author'=>$app['personid'],
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue