diff --git a/core/class/declarationtva.class.php b/core/class/declarationtva.class.php index 25adf88..931e095 100644 --- a/core/class/declarationtva.class.php +++ b/core/class/declarationtva.class.php @@ -1186,9 +1186,10 @@ class DeclarationTVA // Log the error but don't fail the whole process error_log("DeclarationTVA: Exception creating ECM file: " . $e->getMessage()); } - } else { - // Log that ECM files class is not available - error_log("DeclarationTVA: ECM files class not found. Tried paths: " . implode(', ', $ecmfiles_paths)); + } else { + // Log that ECM files class is not available + error_log("DeclarationTVA: ECM files class not found. Tried paths: " . implode(', ', $ecmfiles_paths)); + } } // Return true even if ECM file creation failed - the PDF is still saved to disk