diff --git a/htdocs/expedition/class/expeditionbatch.class.php b/htdocs/expedition/class/expeditionbatch.class.php index e361548309d..27893018ce2 100644 --- a/htdocs/expedition/class/expeditionbatch.class.php +++ b/htdocs/expedition/class/expeditionbatch.class.php @@ -103,6 +103,8 @@ class ExpeditionLigneBatch extends CommonObject * @return int <0 if KO, Id of record (>0) if OK */ function create($id_line_expdet) { + $error = 0; + $id_line_expdet = (int) $id_line_expdet; $sql = "INSERT INTO ".MAIN_DB_PREFIX.self::$_table_element." (";