Page MenuHomePhabricator

Collection array_push() expects parameter 1 to be array, null given
Closed, ResolvedPublic

Description

Warning: array_push() expects parameter 1 to be array, null given in /usr/local/apache/common-local/php-1.20wmf7/extensions/Collection/Collection.body.php on line 529


Version: unspecified
Severity: minor

Details

Reference
bz38442

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:45 AM
bzimport added a project: Collection.
bzimport set Reference to bz38442.
bzimport added a subscriber: Unknown Object (MLST).

Warning: array_push() expects parameter 1 to be array, null given in /usr/local/apache/common-local/php-1.21wmf1/extensions/Collection/Collection.body.php on line 551

static function addChapter( $name ) {

		$collection = CollectionSession::getCollection();
		array_push( $collection['items'], array(
			'type' => 'chapter',
			'title' => $name,
		) );
		CollectionSession::setCollection( $collection );

}