From 16b388f45f3287dfc55d7f4c966a04442eefe4f4 Mon Sep 17 00:00:00 2001
From: Antoine Pitrou <pitrou@free.fr>
Date: Fri, 29 Mar 2002 19:52:45 +0000
Subject: [PATCH] =?UTF-8?q?Vider=20aussi=20les=20donn=C3=A9es=20d'indexati?=
 =?UTF-8?q?ons=20des=20sites=20syndiqu=C3=A9s?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/admin_tech.php3 | 2 ++
 ecrire/inc_index.php3  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/ecrire/admin_tech.php3 b/ecrire/admin_tech.php3
index 9d5e86deed..97cf8bb960 100644
--- a/ecrire/admin_tech.php3
+++ b/ecrire/admin_tech.php3
@@ -29,6 +29,8 @@ if ($purger_index == "oui") {
 		mysql_query("DELETE FROM spip_index_breves");
 		mysql_query("DELETE FROM spip_index_mots");
 		mysql_query("DELETE FROM spip_index_rubriques");
+		mysql_query("DELETE FROM spip_index_syndic");
+
 		mysql_query("DELETE FROM spip_index_dico");
 	}
 }
diff --git a/ecrire/inc_index.php3 b/ecrire/inc_index.php3
index 8f575bc35e..3e886452dd 100644
--- a/ecrire/inc_index.php3
+++ b/ecrire/inc_index.php3
@@ -61,6 +61,7 @@ function indexer_objet($type, $id_objet, $forcer_reset = true, $full = true) {
 
 	$index = '';
 	$mots = "INSERT DELAYED IGNORE spip_index_dico (hash, dico) VALUES (0,'')";
+
 	if ($type != 'syndic'){
 		$table_index = 'spip_index_'.$type.'s';
 	} else {
@@ -68,6 +69,7 @@ function indexer_objet($type, $id_objet, $forcer_reset = true, $full = true) {
 	}
 	$col_id = 'id_'.$type;
 
+
 	switch($type) {
 	case 'article':
 		$query = "SELECT * FROM spip_articles WHERE id_article=$id_objet";
-- 
GitLab