From 3b15339d7395a24624b3d16572899e646c662e39 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Tue, 6 Dec 2016 14:23:29 +0100 Subject: [PATCH] fix requete utilisateur --- admin/recherche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/recherche.php b/admin/recherche.php index d641bc2..5e21fae 100644 --- a/admin/recherche.php +++ b/admin/recherche.php @@ -101,7 +101,7 @@ function RechercheUtilisateurs(&$db) { $where = " WHERE "; $contrainte = false; if ($compte != "") { - $where = $where . "compte LIKE \"$compte\" "; + $where = $where . "username LIKE \"$compte\" "; $contrainte = true; $liste_const = $liste_const. "compte = $compte
"; } @@ -127,7 +127,7 @@ function RechercheUtilisateurs(&$db) { if (!$contrainte) { return false; } - $req = "($req_utilisateurs $where) ORDER BY username DESC"; + $req = "$req_utilisateurs $where ORDER BY username DESC"; $res = db_query($db, $req); return $res;