From d1d7c11cd16e22a11452a53ed4b7b9f50d1da1f1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Jul 2005 01:10:15 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Possibilit=E9=20de=20d=E9sactiver=20plus?= =?UTF-8?q?ieurs=20utilisateurs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/user.class.php b/htdocs/user.class.php index d2b43401307..50f7c79f404 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -448,7 +448,9 @@ class User function disable() { // Désactive utilisateur - $sql = "UPDATE ".MAIN_DB_PREFIX."user SET login = '' WHERE rowid = $this->id"; + $sql = "UPDATE ".MAIN_DB_PREFIX."user"; + $sql.= " SET login = NULL"; + $sql.= " WHERE rowid = ".$this->id; $result = $this->db->query($sql); }