From a6968a89c1f58fbb8f84be3c7a5d99d3284d44d1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 1 Sep 2003 12:23:32 +0000 Subject: [PATCH] Nettoyage du code --- htdocs/actioncomm.class.php3 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/htdocs/actioncomm.class.php3 b/htdocs/actioncomm.class.php3 index 2fea55e911e..238807a5f78 100644 --- a/htdocs/actioncomm.class.php3 +++ b/htdocs/actioncomm.class.php3 @@ -35,14 +35,16 @@ class ActionComm var $note; var $percent; - + /* + * Initialisation + * + */ Function ActionComm($db) { $this->db = $db; $this->societe = new Societe($db); $this->author = new User($db); - $this->contact = new Contact($db); - + $this->contact = new Contact($db); } /* * @@ -117,13 +119,13 @@ class ActionComm * */ Function delete($id) - { - + { $sql = "DELETE FROM llx_actioncomm WHERE id=$id;"; - if ($this->db->query($sql) ) { - - } + if ($this->db->query($sql) ) + { + return 1; + } } /* *