Commit 31a41c0e authored by jcnventura's avatar jcnventura

Issue #1251164: remove undefined constant warning in admin pages when TCPDF is selected.

parent 6aba2cfe
......@@ -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();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment