From 18280df48ed5fbb1e9d087e4f84a7a74c1c60cd7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 17 Nov 2003 13:30:36 +0000 Subject: [PATCH] =?UTF-8?q?Ajoute=20un=20contr=F4le=20sur=20le=20pourcenta?= =?UTF-8?q?ge=20r=E9alis=E9=20dans=20update()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/actioncomm.class.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/actioncomm.class.php b/htdocs/actioncomm.class.php index 9980326b783..090b5d3e660 100644 --- a/htdocs/actioncomm.class.php +++ b/htdocs/actioncomm.class.php @@ -120,8 +120,8 @@ class ActionComm print $this->db->error(); } } - /* - * + /** + * Supprime l'action * * */ @@ -134,12 +134,16 @@ class ActionComm return 1; } } - /* - * + /** + * Met à jour l'action * */ Function update() { + if ($this->percent > 100) + { + $this->percent = 100; + } $sql = "UPDATE llx_actioncomm "; $sql .= " SET percent=$this->percent";