'; @@ -47,12 +47,11 @@ function bandeau_titre($titre) global $connect; $tables = $connect->allTables(); $diff = array_diff([Utils::table('comment'), Utils::table('poll'), Utils::table('slot'), Utils::table('vote')], $tables); - if (0 != count($diff)) { - echo '
'. __('Error', 'Framadate is not properly installed, please check the "INSTALL" to setup the database before continuing.') .'
'; + if (0 !== count($diff)) { + echo '
' . __('Error', 'Framadate is not properly installed, please check the "INSTALL" to setup the database before continuing.') . '
'; bandeau_pied(); die(); } - } function liste_lang() @@ -62,10 +61,10 @@ function liste_lang() $str = ''; foreach ($ALLOWED_LANGUAGES as $k => $v ) { - if (substr($k,0,2)==$locale) { - $str .= '' . "\n" ; + if (substr($k,0,2)===$locale) { + $str .= '' . "\n" ; } else { - $str .= '' . "\n" ; + $str .= '' . "\n" ; } } @@ -78,5 +77,5 @@ function bandeau_pied()