Update de tous les livres ayant un auteur en commun
This commit is contained in:
parent
a2de5b9d39
commit
5d9a975dde
@ -307,7 +307,7 @@ class Livre {
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Function updateosc()
|
Function updateosc($noupdate_other=0)
|
||||||
{
|
{
|
||||||
$desc = trim(addslashes($this->description));
|
$desc = trim(addslashes($this->description));
|
||||||
$desc .= "<p>";
|
$desc .= "<p>";
|
||||||
@ -343,6 +343,13 @@ class Livre {
|
|||||||
{
|
{
|
||||||
if ($lakey <> $this->oscid)
|
if ($lakey <> $this->oscid)
|
||||||
{
|
{
|
||||||
|
if (!$noupdate_other)
|
||||||
|
{
|
||||||
|
$lix = new Livre($this->db);
|
||||||
|
$lix->fetch(0, $lakey);
|
||||||
|
$lix->updateosc(1);
|
||||||
|
}
|
||||||
|
|
||||||
$desc .= '<a href="product_info.php?products_id='.$lakey.'">'.addslashes($lavalue) . "</a> ";
|
$desc .= '<a href="product_info.php?products_id='.$lakey.'">'.addslashes($lavalue) . "</a> ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user