From 244042c60ea2d4182d9f073941a17575eaecdb57 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 24 Oct 2008 10:53:21 +0000 Subject: [PATCH] Fixed TCPDF error message display. --- reporting/includes/tcpdf.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reporting/includes/tcpdf.php b/reporting/includes/tcpdf.php index 35e69dda..59b9ac1f 100644 --- a/reporting/includes/tcpdf.php +++ b/reporting/includes/tcpdf.php @@ -1756,7 +1756,8 @@ if (!class_exists('TCPDF')) { */ function Error($msg) { //Fatal error - die('TCPDF error: '.$msg); + display_error('TCPDF error: '.$msg); + exit; } /** @@ -2602,9 +2603,9 @@ if (!class_exists('TCPDF')) { if (isset($cw)) { unset($cw); } - include($this->_getfontpath().$file); + @include($this->_getfontpath().$file); if ((!isset($type)) OR (!isset($cw))) { - $this->Error('Could not include font definition file'); + $this->Error("Could not include font definition file: ".$file); } $i = count($this->fonts) + 1; // register CID font (all styles at once) -- 2.30.2