summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--print_pdf/print_pdf.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/print_pdf/print_pdf.module b/print_pdf/print_pdf.module
index 5bebcd2..f386a0e 100644
--- a/print_pdf/print_pdf.module
+++ b/print_pdf/print_pdf.module
@@ -636,7 +636,8 @@ function _print_pdf_tcpdf_version() {
}
require_once(DRUPAL_ROOT . '/' . $print_pdf_pdf_tool);
- $pdf = new TCPDF();
+ // Hide warnings, as some TCPDF constants may still be undefined
+ @$pdf = new TCPDF();
return $pdf->getTCPDFVersion();
}