Skip to content

Commit

Permalink
Merge pull request #120 from trsteel88/patch-1
Browse files Browse the repository at this point in the history
Always return options to default
  • Loading branch information
pilot committed Dec 18, 2014
2 parents 6b4c556 + 313786f commit 4d46c5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Knp/Snappy/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public function __construct($binary = null, array $options = array(), array $env
*/
protected function handleOptions(array $options = array())
{
$this->hasHtmlHeader = false;
$this->hasHtmlFooter = false;

if ($this->isFileHeader($options) && !$this->isFile($options['header-html'])) {
$options['header-html'] = $this->createTemporaryFile($options['header-html'], 'html');
}
Expand Down

0 comments on commit 4d46c5d

Please sign in to comment.