From 5d9a975dde3b681ba7d396c098ff372bffa16c9d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 27 Mar 2003 21:59:41 +0000 Subject: [PATCH] Update de tous les livres ayant un auteur en commun --- htdocs/boutique/livre/livre.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/htdocs/boutique/livre/livre.class.php b/htdocs/boutique/livre/livre.class.php index 5e53cc3b45d..e17be5612fb 100644 --- a/htdocs/boutique/livre/livre.class.php +++ b/htdocs/boutique/livre/livre.class.php @@ -307,7 +307,7 @@ class Livre { * * */ - Function updateosc() + Function updateosc($noupdate_other=0) { $desc = trim(addslashes($this->description)); $desc .= "

"; @@ -343,6 +343,13 @@ class Livre { { if ($lakey <> $this->oscid) { + if (!$noupdate_other) + { + $lix = new Livre($this->db); + $lix->fetch(0, $lakey); + $lix->updateosc(1); + } + $desc .= ''.addslashes($lavalue) . " "; } }