Revert: [FIXED] Wrong use of passing by reference.
This commit is contained in:
parent
f2e9e3716b
commit
47a17a33e8
|
|
@ -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 = &$collectionArray;
|
$collection = &$this->$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