[FIXED] Typo in Section->addHeaderFooter().

This commit is contained in:
Roman Syroeshko 2014-07-04 12:25:53 +04:00
parent 4a02142d63
commit 2c5d13c88e
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class Section extends AbstractContainer
$containerClass = substr(get_class($this), 0, strrpos(get_class($this), '\\')) . '\\' .
($header ? 'Header' : 'Footer');
$collectionArray = $header ? 'headers' : 'footers';
$collection = &$this->$collectionArray;
$collection = &$collectionArray;
if (in_array($type, array(Header::AUTO, Header::FIRST, Header::EVEN))) {
$index = count($collection);