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
This commit is contained in:
Frank Cools 2025-10-06 17:24:25 +02:00
parent faf7b3a00a
commit 00157f2634

View File

@ -1186,9 +1186,10 @@ class DeclarationTVA
// Log the error but don't fail the whole process // Log the error but don't fail the whole process
error_log("DeclarationTVA: Exception creating ECM file: " . $e->getMessage()); error_log("DeclarationTVA: Exception creating ECM file: " . $e->getMessage());
} }
} else { } else {
// Log that ECM files class is not available // Log that ECM files class is not available
error_log("DeclarationTVA: ECM files class not found. Tried paths: " . implode(', ', $ecmfiles_paths)); 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 // Return true even if ECM file creation failed - the PDF is still saved to disk