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
parent 8ffd1a7c3d
commit 4b4a56db1e

View file

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