Unverified Commit 84862bae authored by larowlan's avatar larowlan
Browse files

Issue #3241275 by alexpott:...

Issue #3241275 by alexpott: \Drupal\user\Plugin\migrate\source\d6\User::prepareRow() causes deprecations on PHP 8.1
parent dd2e7b8a
......@@ -68,7 +68,10 @@ public function prepareRow(Row $row) {
}
// Unserialize Data.
$row->setSourceProperty('data', unserialize($row->getSourceProperty('data')));
$data = $row->getSourceProperty('data');
if ($data !== NULL) {
$row->setSourceProperty('data', unserialize($row->getSourceProperty('data')));
}
return parent::prepareRow($row);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment