diff --git a/htdocs/compta/export/modules/compta.export.class.php b/htdocs/compta/export/modules/compta.export.class.php index 0ab4160c68e..6b301fac8e0 100644 --- a/htdocs/compta/export/modules/compta.export.class.php +++ b/htdocs/compta/export/modules/compta.export.class.php @@ -165,7 +165,7 @@ class ComptaExport $error += $this->ReadLines(); $error += $this->ReadLinesPayment(); - if (!$error && sizeof($this->linec) > 0) + if (!$error && (sizeof($this->linec) > 0 || sizeof($this->linep) > 0)) { include_once DOL_DOCUMENT_ROOT.'/compta/export/modules/compta.export.'.strtolower($this->classe_export).'.class.php';