From d8085aa2088bc60ba39406ad193e9b6b794aa76b Mon Sep 17 00:00:00 2001 From: Joseph Date: Wed, 3 Feb 2021 17:50:35 +0000 Subject: [PATCH] [BridgeCard] Display configuration options (if enabled) when bridge has no parameters --- lib/BridgeCard.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/BridgeCard.php b/lib/BridgeCard.php index 0ed605bfaee..69c67bc4abd 100644 --- a/lib/BridgeCard.php +++ b/lib/BridgeCard.php @@ -347,11 +347,13 @@ static function displayBridgeCard($bridgeName, $formats, $isActive = true){ CARD; // If we don't have any parameter for the bridge, we print a generic form to load it. - if(count($parameters) === 0 - || count($parameters) === 1 && array_key_exists('global', $parameters)) { - + if (count($parameters) === 0) { $card .= self::getForm($bridgeName, $formats, $isActive, $isHttps); + // Display form with cache timeout and/or noproxy options (if enabled) when bridge has no parameters + } else if (count($parameters) === 1 && array_key_exists('global', $parameters)) { + $card .= self::getForm($bridgeName, $formats, $isActive, $isHttps, '', $parameters['global']); + } else { foreach($parameters as $parameterName => $parameter) {