diff --git a/ecrire/exec/articles.php b/ecrire/exec/articles.php index d1c1856e00572abadec16434ec2a85ad61c28086..5207078e4c72f83c0a78b63dbf48dc4cce167ce3 100644 --- a/ecrire/exec/articles.php +++ b/ecrire/exec/articles.php @@ -89,6 +89,8 @@ afficher_hierarchie($id_rubrique); fin_grand_cadre(); +if (!$id_rubrique) {echo _T('public:aucun_article'); exit;} + // // Affichage de la colonne de gauche // diff --git a/ecrire/exec/breves_voir.php b/ecrire/exec/breves_voir.php index c70da1f3dc2a972ac40028ab4538c88541fca36f..37c5ebf3ce6c5aaa40b611b59b1b8000e70bd14b 100644 --- a/ecrire/exec/breves_voir.php +++ b/ecrire/exec/breves_voir.php @@ -50,7 +50,7 @@ debut_grand_cadre(); afficher_hierarchie($id_rubrique); fin_grand_cadre(); - +if (!$id_rubrique) {echo _T('public:aucune_breve'); exit;} debut_gauche(); debut_boite_info(); diff --git a/ecrire/exec/mots_edit.php b/ecrire/exec/mots_edit.php index 743f0979e8aed168a9ed618b2920dd43def706b5..55dc19bee89a54bcbf63d04d92bdccb24ccf46b5 100644 --- a/ecrire/exec/mots_edit.php +++ b/ecrire/exec/mots_edit.php @@ -124,7 +124,7 @@ if ($row = spip_fetch_array($result)) { $type = $row['type']; $extra = $row['extra']; $id_groupe = $row['id_groupe']; -} + } else $id_mot = 0; debut_page("« $titre_mot »", "documents", "mots"); debut_gauche(); @@ -144,7 +144,7 @@ if ($id_mot) { voir_en_ligne ('mot', $id_mot); fin_boite_info(); -} + } else {echo _T('info_mot_sans_groupe'); exit;} ////////////////////////////////////////////////////// // Logos du mot-clef diff --git a/ecrire/exec/sites.php b/ecrire/exec/sites.php index bc493f8551bcb411b7bcb4a4a12b83ca384e28e4..92fa1367b82372d6880164b3df0b46106a77ffa7 100644 --- a/ecrire/exec/sites.php +++ b/ecrire/exec/sites.php @@ -256,7 +256,7 @@ if ($row = spip_fetch_array($result)) { $extra=$row["extra"]; - } + } else $id_syndic = 0; if ($nom_site) $titre_page = "« $nom_site »"; @@ -277,7 +277,7 @@ afficher_hierarchie($id_rubrique); fin_grand_cadre(); - + if (!$id_syndic) {echo _T('public:aucun_site'); exit;} debut_gauche();