Skip to content

Commit

Permalink
Merge pull request #2 from willybahuaud/master
Browse files Browse the repository at this point in the history
l188 of PDFmerger, prevent fatal error
  • Loading branch information
myokyawhtun committed Jun 26, 2013
2 parents e1f6434 + 846cf48 commit 5503c59
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 5503c59

Please sign in to comment.