Check for "indexes" key in Configuration::getNestings()

This commit is contained in:
Thomas Tourlourat 2013-04-17 11:33:32 +03:00 committed by Jeremy Mikola
commit 4b4a56db1e

View file

@ -363,6 +363,10 @@ class Configuration implements ConfigurationInterface
*/ */
protected function getNestings() protected function getNestings()
{ {
if (!isset($this->configArray[0]['indexes'])) {
return array();
}
$nestings = array(); $nestings = array();
foreach ($this->configArray[0]['indexes'] as $index) { foreach ($this->configArray[0]['indexes'] as $index) {
if (empty($index['types'])) { if (empty($index['types'])) {