Skip to content

Commit c653377

Browse files
authored
Merge pull request #1116 from ctrlaltca/fix_footer_first_page
Fix: different header/footer works only for headers, not for footers
2 parents cf76b1f + c448046 commit c653377

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PhpWord/Element/Section.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ public function hasDifferentFirstPage()
181181
return true;
182182
}
183183
}
184+
foreach ($this->footers as $footer) {
185+
if ($footer->getType() == Header::FIRST) {
186+
return true;
187+
}
188+
}
184189
return false;
185190
}
186191

0 commit comments

Comments
 (0)