diff --git a/web/admin/overview_federation.php b/web/admin/overview_federation.php index 9a2409ee6..84ea21bfe 100644 --- a/web/admin/overview_federation.php +++ b/web/admin/overview_federation.php @@ -98,14 +98,16 @@ isSuperadmin() && isset($_GET['fed_id'])) { $cat = new \core\CAT(); // initialises Entity static members $fedIdentifiers = array_keys($cat->knownFederations); if (!in_array(strtoupper($_GET['fed_id']), $fedIdentifiers)) { throw new Exception($this->inputValidationError(sprintf("This %s does not exist!", \core\common\Entity::$nomenclature_fed))); + } else { + $fed_id = $_GET['fed_id']; } - $feds = [['name'=>' user:fedadmin', 'value' => $_GET['fed_id']]]; + $feds = [['name'=>' user:fedadmin', 'value' => $fed_id]]; } elseif (!$user->isFederationAdmin()) { echo "

" . sprintf(_("You are not a %s manager."), $uiElements->nomenclatureFed) . "

"; echo $deco->footer();