diff --git a/lib/API.php b/lib/API.php index be7d6dfea8901dc89589863550dd1895059783f4..3220e21dcb83c7af740488f483a7b3cc69fbe8fb 100644 --- a/lib/API.php +++ b/lib/API.php @@ -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; } }