fix requete utilisateur
This commit is contained in:
parent
5c7b6d89dd
commit
3b15339d73
@ -101,7 +101,7 @@ function RechercheUtilisateurs(&$db) {
|
|||||||
$where = " WHERE ";
|
$where = " WHERE ";
|
||||||
$contrainte = false;
|
$contrainte = false;
|
||||||
if ($compte != "") {
|
if ($compte != "") {
|
||||||
$where = $where . "compte LIKE \"$compte\" ";
|
$where = $where . "username LIKE \"$compte\" ";
|
||||||
$contrainte = true;
|
$contrainte = true;
|
||||||
$liste_const = $liste_const. "compte = <i>$compte</i><br/>";
|
$liste_const = $liste_const. "compte = <i>$compte</i><br/>";
|
||||||
}
|
}
|
||||||
@ -127,7 +127,7 @@ function RechercheUtilisateurs(&$db) {
|
|||||||
if (!$contrainte) {
|
if (!$contrainte) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$req = "($req_utilisateurs $where) ORDER BY username DESC";
|
$req = "$req_utilisateurs $where ORDER BY username DESC";
|
||||||
$res = db_query($db, $req);
|
$res = db_query($db, $req);
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user