Skip to content

Commit

Permalink
Refs #4404 Error when downloading pdf-report
Browse files Browse the repository at this point in the history
Can you please apply these two changes and confirm whether this fixes the issue for you?
  • Loading branch information
mattab committed Jan 8, 2014
1 parent 5f5294a commit 566c63a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/tcpdf/include/tcpdf_images.php
Expand Up @@ -235,7 +235,7 @@ public static function _parsejpeg($file) {
* @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;
Expand Down
2 changes: 1 addition & 1 deletion libs/tcpdf/tcpdf.php
Expand Up @@ -6973,7 +6973,7 @@ public function Image($file, $x='', $y='', $w=0, $h=0, $type='', $link='', $alig
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);
Expand Down

0 comments on commit 566c63a

Please sign in to comment.