Update actioncomm.class.php

This commit is contained in:
Laurent Destailleur 2020-05-23 14:26:28 +02:00 committed by GitHub
parent f0bb7d233f
commit 7397806ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2048,7 +2048,7 @@ class ActionComm extends CommonObject
$this->db->begin();
$sql = "UPDATE ".MAIN_DB_PREFIX."actioncomm ";
$sql .= " SET percent = '".$percent."'";
$sql .= " SET percent = ".(int) $percent;
$sql .= " WHERE id=".$id;
if ($this->db->query($sql))