ImportSource: loaded modifiers should be an Array

fixes #2053
This commit is contained in:
Thomas Gelf 2020-01-09 14:15:50 +01:00
parent 668012ac64
commit a7c21743b9
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
if ($this->loadedRowModifiers === null && $this->hasBeenLoadedFromDb()) {
$this->loadedRowModifiers = $this->fetchRowModifiers();
}
$current = $this->loadedRowModifiers;
if ($current !== null && count($current) !== count($modifiers)) {
$current = (array) $this->loadedRowModifiers;
if (\count($current) !== \count($modifiers)) {
$this->newRowModifiers = $modifiers;
} else {
$i = 0;