Skip to content
Snippets Groups Projects

fixing the output format of edugain_status

Merged Tomasz Wolniewicz requested to merge cherry-pick-955c364e into psnc-production
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -600,7 +600,7 @@ class API {
when no federation code is present an array of code-indexed participating federations with details as described above'
],
'examples' => [
['opt' => ['only_errors'], 'title' => 'only fedrations with problems',],
['opt' => ['only_errors'=>1,], 'title' => 'only fedrations with problems',],
['opt' => ['fed_id' => 'PIONIER-ID',],'title' => 'show status of PIONIER.Id',],
['opt' => ['fed_id' => 'PIONIER-ID',], 'format' => 'json', 'title' => 'show status of PIONIER.Id in JSON',]
]
@@ -620,7 +620,7 @@ class API {
}
foreach ($edugain->FEDS as $fed) {
if ($fed['feed_problem'] > 0 || $fed['valid_sec'] < $sec) {
$out[] = $fed;
$out[$fed['code']] = $fed;
}
}
Loading