[FIXED] Typo in Section->addHeaderFooter().
This commit is contained in:
parent
4a02142d63
commit
2c5d13c88e
|
|
@ -164,7 +164,7 @@ class Section extends AbstractContainer
|
||||||
$containerClass = substr(get_class($this), 0, strrpos(get_class($this), '\\')) . '\\' .
|
$containerClass = substr(get_class($this), 0, strrpos(get_class($this), '\\')) . '\\' .
|
||||||
($header ? 'Header' : 'Footer');
|
($header ? 'Header' : 'Footer');
|
||||||
$collectionArray = $header ? 'headers' : 'footers';
|
$collectionArray = $header ? 'headers' : 'footers';
|
||||||
$collection = &$this->$collectionArray;
|
$collection = &$collectionArray;
|
||||||
|
|
||||||
if (in_array($type, array(Header::AUTO, Header::FIRST, Header::EVEN))) {
|
if (in_array($type, array(Header::AUTO, Header::FIRST, Header::EVEN))) {
|
||||||
$index = count($collection);
|
$index = count($collection);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue