Qual: Missing variable declaration

This commit is contained in:
Raphaël Doursenaud 2014-04-23 18:17:02 +02:00
parent 7cdabb7d6c
commit 20842a5c45

View File

@ -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." (";