Modif l'appel de la fonction db->clone en db->dbclone

This commit is contained in:
Rodolphe Quiedeville 2005-03-15 20:25:19 +00:00
parent d176de4a1e
commit 12932537e5
3 changed files with 25 additions and 20 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -21,10 +21,11 @@
* *
*/ */
/*! \file htdocs/compta/facture/facture-rec.class.php /*!
\ingroup facture \file htdocs/compta/facture/facture-rec.class.php
\brief Fichier de la classe des factures recurentes \ingroup facture
\version $Revision$ \brief Fichier de la classe des factures recurentes
\version $Revision$
*/ */
@ -339,7 +340,7 @@ class FactureRec
$obj = $this->db->fetch_object($result); $obj = $this->db->fetch_object($result);
$sql = "UPDATE ".MAIN_DB_PREFIX."product SET nbvente=nbvente+1 WHERE rowid = ".$obj->fk_product; $sql = "UPDATE ".MAIN_DB_PREFIX."product SET nbvente=nbvente+1 WHERE rowid = ".$obj->fk_product;
$db2 = $this->db->clone(); $db2 = $this->db->dbclone();
$result = $db2->query($sql); $result = $db2->query($sql);
$i++; $i++;
} }

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org> * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
@ -24,15 +24,17 @@
*/ */
/** /**
\file htdocs/facture.class.php
\ingroup facture \file htdocs/facture.class.php
\brief Fichier de la classe des factures clients \ingroup facture
\version $Revision$ \brief Fichier de la classe des factures clients
\version $Revision$
*/ */
/** \class Facture /** \class Facture
\brief Classe permettant la gestion des factures clients \brief Classe permettant la gestion des factures clients
*/ */
class Facture class Facture
@ -647,7 +649,7 @@ class Facture
$obj = $this->db->fetch_object($result); $obj = $this->db->fetch_object($result);
$sql = "UPDATE ".MAIN_DB_PREFIX."product SET nbvente=nbvente+1 WHERE rowid = ".$obj->fk_product; $sql = "UPDATE ".MAIN_DB_PREFIX."product SET nbvente=nbvente+1 WHERE rowid = ".$obj->fk_product;
$db2 = $this->db->clone(); $db2 = $this->db->dbclone();
$result = $db2->query($sql); $result = $db2->query($sql);
$i++; $i++;

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -21,14 +21,16 @@
* *
*/ */
/** \file htdocs/notify.class.php /**
\brief Fichier de la classe de gestion des notifications \file htdocs/notify.class.php
\version $Revision$ \brief Fichier de la classe de gestion des notifications
\version $Revision$
*/ */
/** \class Notify /**
\brief Classe de gestion des notifications \class Notify
\brief Classe de gestion des notifications
*/ */
class Notify class Notify
@ -96,7 +98,7 @@ class Notify
$sql = "INSERT INTO ".MAIN_DB_PREFIX."notify (daten, fk_action, fk_contact, objet_type, objet_id)"; $sql = "INSERT INTO ".MAIN_DB_PREFIX."notify (daten, fk_action, fk_contact, objet_type, objet_id)";
$sql .= " VALUES (now(), $action ,$obj->idp , '$objet_type', $objet_id);"; $sql .= " VALUES (now(), $action ,$obj->idp , '$objet_type', $objet_id);";
$db2 = $this->db->clone(); $db2 = $this->db->dbclone();
if (! $db2->query($sql) ) if (! $db2->query($sql) )
{ {
print $db2->error(); print $db2->error();