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";