From e2ffb567ff02608fd604bba174d7e2d8eaa78e0a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 1 Sep 2003 13:07:12 +0000 Subject: [PATCH] Bugfix --- htdocs/boutique/livre/livre.class.php | 29 --------------------------- 1 file changed, 29 deletions(-) diff --git a/htdocs/boutique/livre/livre.class.php b/htdocs/boutique/livre/livre.class.php index a46d68bfc49..0da0956496f 100644 --- a/htdocs/boutique/livre/livre.class.php +++ b/htdocs/boutique/livre/livre.class.php @@ -429,36 +429,7 @@ class Livre { * * */ - Function liste_auteur() - { - $ga = array(); - $sql = "SELECT a.rowid, a.nom FROM llx_auteur as a, llx_livre_to_auteur as l"; - $sql .= " WHERE a.rowid = l.fk_auteur AND l.fk_livre = ".$this->id; - $sql .= " ORDER BY a.nom"; - - if ($this->db->query($sql) ) - { - $nump = $this->db->num_rows(); - - if ($nump) - { - $i = 0; - while ($i < $nump) - { - $obj = $this->db->fetch_object($i); - - $ga[$obj->rowid] = $obj->nom; - $i++; - } - } - return $ga; - } - else - { - print $this->db->error(); - } - } /* * *