Modif gestion des virgules

This commit is contained in:
Rodolphe Quiedeville 2005-09-06 15:42:48 +00:00
parent 535947092c
commit 05ed858673

View File

@ -59,14 +59,15 @@ if ($_POST["action"] == 'modif' && $auth_write)
$sortorder = "DESC"; $sortorder = "DESC";
$sortfield = "m.tms"; $sortfield = "m.tms";
if ($_POST["temporel"] > 0) $temporel = ereg_replace(",",".",$_POST["temporel"]);
if ($temporel > 0)
{ {
require_once DOL_DOCUMENT_ROOT."/telephonie/telephonie.tarif.grille.class.php"; require_once DOL_DOCUMENT_ROOT."/telephonie/telephonie.tarif.grille.class.php";
$obgrille = new TelephonieTarifGrille($db); $obgrille = new TelephonieTarifGrille($db);
$obgrille->UpdateTarif($_GET["id"], $_POST["tarif"], $_POST["temporel"], $_POST["fixe"], $user); $obgrille->UpdateTarif($_GET["id"], $_POST["tarif"], $temporel, $_POST["fixe"], $user);
Header("Location: grille.php?id=".$_GET["id"]); Header("Location: grille.php?id=".$_GET["id"]);
} }