From 00157f263463ad28cfe0c7c5838d35cffc6c3a5b Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Mon, 6 Oct 2025 17:24:25 +0200 Subject: [PATCH] Fix PHP syntax error in try-catch block structure - Fixed nested try-catch block structure in saveValidatedPDF method - Corrected indentation and block nesting - Resolved 'unexpected token catch' syntax error - ECM integration code now has proper syntax - Validation should work without parse errors --- core/class/declarationtva.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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