Skip to content

Commit

Permalink
Merge pull request #1116 from ctrlaltca/fix_footer_first_page
Browse files Browse the repository at this point in the history
Fix: different header/footer works only for headers, not for footers
  • Loading branch information
troosan authored Aug 13, 2017
2 parents cf76b1f + c448046 commit c653377
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/PhpWord/Element/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ public function hasDifferentFirstPage()
return true;
}
}
foreach ($this->footers as $footer) {
if ($footer->getType() == Header::FIRST) {
return true;
}
}
return false;
}

Expand Down

0 comments on commit c653377

Please sign in to comment.