From d0f5a51d8b8a50639f80725cd4ee6eec15a88ca9 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Tue, 20 Aug 2002 23:35:23 +0000
Subject: [PATCH] bug titre_mot, type_mot

---
 inc-calcul-squel.php3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc-calcul-squel.php3 b/inc-calcul-squel.php3
index 994297d575..742c5d6050 100644
--- a/inc-calcul-squel.php3
+++ b/inc-calcul-squel.php3
@@ -435,10 +435,10 @@ function parser_boucle($texte, $id_parent) {
 							$req_order = " ORDER BY alea";
 						}
 						else if ($match[1] == 'titre_mot'){
-							$req_order= " ORDER BY rel_mots.titre";
+							$req_order= " ORDER BY lien_mot.titre";
 						}
 						else if ($match[1] == 'type_mot'){
-							$req_order= " ORDER BY rel_mots.type";
+							$req_order= " ORDER BY lien_mot.type";
 						}
 						else if ($match[1] == 'points'){
 							$req_order= " ORDER BY points";
-- 
GitLab