From a0ab305b0616c2b1795ed7902f7cbbe96fd77e7b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 30 Jul 2005 20:24:59 +0000 Subject: [PATCH] Suppression fonction update en double ????? --- htdocs/project.class.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/htdocs/project.class.php b/htdocs/project.class.php index 2afeae20610..9d4bb331720 100644 --- a/htdocs/project.class.php +++ b/htdocs/project.class.php @@ -144,32 +144,7 @@ class Project { } } - /* - * \brief Met à jour objet projet dans la base - */ - function update() - { - $this->ref = ereg_replace("\"","",stripslashes($this->ref)); - $this->ref = ereg_replace("'","",stripslashes($this->ref)); - $this->ref = trim($this->ref); - - $this->title = ereg_replace("\"","",stripslashes($this->title)); - $this->title = ereg_replace("'","",stripslashes($this->title)); - $this->title = trim($this->title); - - $sql = "UPDATE ".MAIN_DB_PREFIX."projet SET"; - $sql .= " ref='".$this->ref."', "; - $sql .= " title='".$this->title."' "; - $sql .= " WHERE rowid=".$this->id; - - $resql = $this->db->query($sql); - if (!$resql) - { - print $this->db->error(); - } - } - /* * *