diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-01-09 03:21:13 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-01-09 03:21:13 +0400 |
commit | 566c63a52e31b2b2d3e1a83f8f63e74e8d661b21 (patch) | |
tree | 5e6609cbdbcace3725d43e32e1713c20b27a4ff7 /libs | |
parent | 5f5294a65a55a6418a8a13d0521c93a4433bfe05 (diff) |
Refs #4404 Error when downloading pdf-report
Can you please apply these two changes and confirm whether this fixes the issue for you?
Diffstat (limited to 'libs')
-rw-r--r-- | libs/tcpdf/include/tcpdf_images.php | 2 | ||||
-rw-r--r-- | libs/tcpdf/tcpdf.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/tcpdf/include/tcpdf_images.php b/libs/tcpdf/include/tcpdf_images.php index c43eb69604..5ce9e578f7 100644 --- a/libs/tcpdf/include/tcpdf_images.php +++ b/libs/tcpdf/include/tcpdf_images.php @@ -235,7 +235,7 @@ class TCPDF_IMAGES { * @public static */ public static function _parsepng($file) { - $f = fopen($file, 'rb'); + $f = @fopen($file, 'rb'); if ($f === false) { // Can't open image file return false; diff --git a/libs/tcpdf/tcpdf.php b/libs/tcpdf/tcpdf.php index 1999010026..44505e79a6 100644 --- a/libs/tcpdf/tcpdf.php +++ b/libs/tcpdf/tcpdf.php @@ -6973,7 +6973,7 @@ class TCPDF { if (($info === false) AND function_exists($gdfunction)) { try { // GD library - $img = $gdfunction($file); + $img = @$gdfunction($file); if ($img !== false) { if ($resize) { $imgr = imagecreatetruecolor($neww, $newh); |