Revert: [FIXED] Wrong use of passing by reference.

This commit is contained in:
Roman Syroeshko 2014-07-04 13:02:28 +04:00
parent f2e9e3716b
commit 47a17a33e8
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 = &$collectionArray;
$collection = &$this->$collectionArray;
if (in_array($type, array(Header::AUTO, Header::FIRST, Header::EVEN))) {
$index = count($collection);