diff --git a/include/class/class_anc_operation.php b/include/class/class_anc_operation.php index 0276b2820..bc0d5e6e6 100644 --- a/include/class/class_anc_operation.php +++ b/include/class/class_anc_operation.php @@ -901,8 +901,8 @@ class Anc_Operation */ function delete_by_jid($p_jid) { - $sql="delete from operation_analytique where j_id=$p_jid"; - $this->db->exec_sql($sql); + $sql="delete from operation_analytique where j_id=$1"; + $this->db->exec_sql($sql,array($p_jid)); } /*\brief Display a table with analytic accounting in * detail of operation