phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4729 - phpcompta/tags/rel600/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4729 - phpcompta/tags/rel600/include
Date: Tue, 24 Jan 2012 13:42:21 +0100 (CET)

Author: danydb
Date: 2012-01-24 13:42:20 +0100 (Tue, 24 Jan 2012)
New Revision: 4729

Modified:
   phpcompta/tags/rel600/include/user_detail.inc.php
Log:
Bug 517 : impossible d'effacer un utilisateur


Modified: phpcompta/tags/rel600/include/user_detail.inc.php
===================================================================
--- phpcompta/tags/rel600/include/user_detail.inc.php   2012-01-23 09:50:01 UTC 
(rev 4728)
+++ phpcompta/tags/rel600/include/user_detail.inc.php   2012-01-24 12:42:20 UTC 
(rev 4729)
@@ -86,12 +86,11 @@
     if (isset($_POST["DELETE"]))
     {
         $cn = new Database();
-        $Res = $cn->exec_sql("delete from priv_user where priv_jnt in ( select 
jnt_id from jnt_use_dos where use_id=$1", array($uid));
+        $Res = $cn->exec_sql("delete from priv_user where priv_jnt in ( select 
jnt_id from jnt_use_dos where use_id=$1)", array($uid));
         $Res = $cn->exec_sql("delete from jnt_use_dos where use_id=$1", 
array($uid));
         $Res = $cn->exec_sql("delete from ac_users where use_id=$1", 
array($uid));
 
-        echo "<center><H2 class=\"info\"> User " . h($_POST['fname']) . " " . 
h($_POST['lname']) . " (" .
-        h($_POST['login']) . ") est effacé</H2></CENTER>";
+        echo "<center><H2 class=\"info\"> User " . h($_POST['fname']) . " " . 
h($_POST['lname']) . " est effacé</H2></CENTER>";
         require_once("class_iselect.php");
         require_once("user.inc.php");
         return;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]