Skip to content
Extraits de code Groupes Projets
Valider a8fa1ad2 rédigé par marcimat's avatar marcimat
Parcourir les fichiers

fix: Notice PHP, qui bloque les crayons

parent c69ea417
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -74,7 +74,10 @@ function tradlang_post_edition($flux) { ...@@ -74,7 +74,10 @@ function tradlang_post_edition($flux) {
$config = lire_config('tradlang'); $config = lire_config('tradlang');
if (!is_array($config)) { if (!is_array($config)) {
return $flux; return $flux;
} elseif ($config['sauvegarde_locale'] == 'on' && $config['sauvegarde_post_edition'] == 'on') { } elseif (
($config['sauvegarde_locale'] ?? null) === 'on'
&& ($config['sauvegarde_post_edition'] ?? null) === 'on'
) {
include_spip('tradlang_fonctions'); include_spip('tradlang_fonctions');
if ($dir_lang = tradlang_dir_lang()) { if ($dir_lang = tradlang_dir_lang()) {
$infos = sql_fetsel('lang,module', $flux['args']['table'], 'id_tradlang=' . (int) $flux['args']['id_objet']); $infos = sql_fetsel('lang,module', $flux['args']['table'], 'id_tradlang=' . (int) $flux['args']['id_objet']);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter