From 81864bf4ac6c0ddc4f6dd4430edec41047f16397 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 9 Jul 2007 12:59:19 +0000 Subject: [PATCH] Suppression de la mise a jour des tarifs lies --- .../telephonie/telephonie.tarif.grille.class.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/htdocs/telephonie/telephonie.tarif.grille.class.php b/htdocs/telephonie/telephonie.tarif.grille.class.php index 4d256a2d582..2c692fa42f0 100644 --- a/htdocs/telephonie/telephonie.tarif.grille.class.php +++ b/htdocs/telephonie/telephonie.tarif.grille.class.php @@ -180,10 +180,6 @@ class TelephonieTarifGrille { } - - - - if ($result === 0 ) { $this->db->commit(); @@ -266,14 +262,13 @@ class TelephonieTarifGrille { function UpdateTarif($grille_id, $tarif_id, $temporel, $fixe, $user) { - if ($temporel > 0) { - $tarifs_linked = array(); $this->_DBUpdateTarif($grille_id, $tarif_id, $temporel, $fixe, $user); - + // Ci-dessous a reintegrer avec une option de configuration + /* $sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."telephonie_tarif"; $sql .= " WHERE tlink = ".$tarif_id; @@ -281,15 +276,14 @@ class TelephonieTarifGrille { if ($resql) { - $num = $this->db->num_rows($resql); $i = 0; - while ($i < $num) + while ($row = $this->db->fetch_row($resql)) { - $row = $this->db->fetch_row($resql); $tarifs_linked[$i] = $row[0]; $i++; } + $this->db->free($resql); } else { @@ -301,7 +295,7 @@ class TelephonieTarifGrille { { $this->_DBUpdateTarif($grille_id, $tarif, $temporel, $fixe, $user); } - + */ } return $result;