From f2a6f08b9b2e8dd4a0ed61d261a6161f9a52de58 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Wed, 12 Jul 2006 08:53:56 +0000
Subject: [PATCH] bug qu poussait a creer automatiquement un groupe de mots
 affectes aux rubriques

---
 ecrire/inc/mots.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/inc/mots.php b/ecrire/inc/mots.php
index d6d27cf3a7..0ade962e74 100644
--- a/ecrire/inc/mots.php
+++ b/ecrire/inc/mots.php
@@ -134,7 +134,7 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot,
 		if (!$flag_editable) return;
 		$cpt = spip_fetch_array(spip_query("SELECT COUNT(*) AS n FROM spip_groupes_mots WHERE $table = 'oui'	AND ".substr($connect_statut,1)." = 'oui'"));
 
-		if (!$cpt['n'] AND !$flag_editable) return;
+		if (!$cpt['n']) return;
 	}
 
 	echo "<a name='mots'></a>";
-- 
GitLab