diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index 7b8569749d1..b8574d3ed98 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -1,7 +1,7 @@ * Copyright (C) 2005 Davoleau Brice - * + * Copyright (C) 2005 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -54,17 +54,17 @@ class Categorie $sql = "SELECT rowid,label,description "; $sql .= "FROM ".MAIN_DB_PREFIX."categorie WHERE rowid = ".$id; - $res = $this->db->query ($sql); + $resql = $this->db->query ($sql); - if ($res) + if ($resql) { - $res = $this->db->fetch_array (); + $res = $this->db->fetch_array($resql); $this->id = $res['rowid']; $this->label = $res['label']; - $this->description = $res['description']; + $this->description = stripslashes($res['description']); - $this->db->free (); + $this->db->free($resql); } else {