From 0e8e75cec055be9b08153ff4cdc4b61562e1761f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Badet=20Aur=C3=A9lien?= Date: Sat, 19 Nov 2016 01:10:25 +0100 Subject: [PATCH] Update html.php --- lib/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/html.php b/lib/html.php index cb795a38..01080278 100644 --- a/lib/html.php +++ b/lib/html.php @@ -10,7 +10,7 @@ function displayBridgeCard($bridgeName, $formats, $isActive = true){ // If we have a defined array of compatibles formats : show only helperbuttons for thoses formats. // If we dont have any defined array of compatibles formats : show helperbuttons for every availables formats. $compatiblesFormats = array(); - if (defined($bridgeClass::FORMATS)&&(count($bridgeClass::FORMATS) > 0)){ + if (!empty($bridgeClass::FORMATS)){ $bridgeFormats = $bridgeClass::FORMATS; //check if format exists foreach($bridgeFormats as $name){