From a7c21743b940313d4a0c2f8af01a00a623e86aee Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 9 Jan 2020 14:15:50 +0100 Subject: [PATCH] ImportSource: loaded modifiers should be an Array fixes #2053 --- library/Director/Objects/ImportSource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Director/Objects/ImportSource.php b/library/Director/Objects/ImportSource.php index 74cf5f2f..58fcc3ac 100644 --- a/library/Director/Objects/ImportSource.php +++ b/library/Director/Objects/ImportSource.php @@ -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;