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){