diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index b7000ebb557..59bc60f342b 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -576,7 +576,7 @@ class MouvementStock extends CommonObject $error++; $this->errors[] = $langs->trans("SerialNumberAlreadyInUse", $batch, $product->ref); } - elseif { $qty > 1 } + elseif ( $qty > 1 ) { $error++; $this->errors[] = $langs->trans("TooManyQtyForSerialNumber", $product->ref, $batch);