diff --git a/src/Migration/Step/UrlRewrite/Version191to2000.php b/src/Migration/Step/UrlRewrite/Version191to2000.php index 39e05f882..be6008e9b 100644 --- a/src/Migration/Step/UrlRewrite/Version191to2000.php +++ b/src/Migration/Step/UrlRewrite/Version191to2000.php @@ -145,10 +145,14 @@ protected function integrity() { $result = true; $this->progress->start(1); - $result &= array_keys($this->source->getStructure(self::SOURCE)->getFields()) - == $this->structure[MapInterface::TYPE_SOURCE][self::SOURCE]; - $result &= array_keys($this->destination->getStructure(self::DESTINATION)->getFields()) - == $this->structure[MapInterface::TYPE_DEST][self::DESTINATION]; + $result &= !array_diff_key( + array_keys($this->source->getStructure(self::SOURCE)->getFields()), + $this->structure[MapInterface::TYPE_SOURCE][self::SOURCE] + ); + $result &= !array_diff_key( + array_keys($this->destination->getStructure(self::DESTINATION)->getFields()), + $this->structure[MapInterface::TYPE_DEST][self::DESTINATION] + ); $this->progress->advance(); $this->progress->finish(); return (bool)$result;