From c432d14de48f5a9da33b678435df24879b8a90cc Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 22:39:04 +0000 Subject: [PATCH] Update file compte.php --- html/compte.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/compte.php b/html/compte.php index 1e06b666..65640c0b 100644 --- a/html/compte.php +++ b/html/compte.php @@ -23,7 +23,7 @@ if($resultat) { if(isset($_POST['user_display_name']) && isset($_POST['user_name']) && isset($_POST['user_bio']) && isset($_POST['user_pp']) && isset($_POST['user_banner'])) { $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $req = $bdd->prepare("SELECT ID FROM users WHERE username = :user_name AND ID NOT IN ( :user_id )"); + $req = $bdd->prepare("SELECT ID FROM users WHERE username = :user_name AND NOT ID = :user_id"); $req->bindParam(":user_name", htmlspecialchars($_POST['user_name'])); $req->bindParam(":user_id", $_SESSION['userid'], PDO::PARAM_INT); $req->execute();