Skip to content

Commit

Permalink
Update PDFMerger.php
Browse files Browse the repository at this point in the history
Prevent fatal error while executing : PHP Fatal error: Uncaught exception 'Exception' with message 'Error outputting PDF to 'file'.' in /home/runman/PDFMerger/PDFMerger.php:124
  • Loading branch information
Willy Bahuaud committed Jun 24, 2013
1 parent 48a98ea commit 846cf48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PDFMerger.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function merge($outputmode = 'browser', $outputpath = 'newfile.pdf')
}
else
{
if($fpdi->Output($outputpath, $mode))
if($fpdi->Output($outputpath, $mode) == '')
{
return true;
}
Expand Down Expand Up @@ -190,4 +190,4 @@ private function _rewritepages($pages)
return $newpages;
}

}
}

0 comments on commit 846cf48

Please sign in to comment.