diff --git a/library/Director/Import/Import.php b/library/Director/Import/Import.php index 53480441..bebec603 100644 --- a/library/Director/Import/Import.php +++ b/library/Director/Import/Import.php @@ -102,8 +102,17 @@ continue; $db->beginTransaction(); if (! $this->rowSetExists($rowset)) { - $newRows = $this->newChecksums('imported_row', $rowSums); - $newProperties = $this->newChecksums('imported_property', array_keys($props)); + if (empty($rowSums)) { + $newRows = array(); + } else { + $newRows = $this->newChecksums('imported_row', $rowSums); + } + + if (empty($rowSums)) { + $newProperties = array(); + } else { + $newProperties = $this->newChecksums('imported_property', array_keys($props)); + } $db->insert('imported_rowset', array('checksum' => $rowset));