From 20842a5c45e3e5ea18279c4c8f0b0a82d907fccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Wed, 23 Apr 2014 18:17:02 +0200 Subject: [PATCH] Qual: Missing variable declaration --- htdocs/expedition/class/expeditionbatch.class.php | 2 ++ 1 file changed, 2 insertions(+) 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." (";