Fix some things in import routine.

This commit is contained in:
James Cole
2018-01-04 08:59:39 +01:00
parent 3ce5ccb98a
commit 6b59b6de6e
4 changed files with 13 additions and 0 deletions

View File

@@ -106,6 +106,10 @@ class Map implements ConfigurationInterface
foreach ($setIndexes as $index) {
$this->data[$index]['values'] = array_unique($this->data[$index]['values']);
asort($this->data[$index]['values']);
// if the count of this array is zero, there is nothing to map.
if(count($this->data[$index]['values']) === 0) {
unset($this->data[$index]);
}
}
unset($setIndexes);