Import: ignore null properties for now

This commit is contained in:
Thomas Gelf 2015-07-24 15:26:09 +02:00
parent 61052be1f6
commit 80b2974372
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ class Import
sort($keys);
foreach ($keys as $key) {
// TODO: Specify how to treat NULL values. Ignoring for now.
if ($row->$key === null) {
continue;
}
$checksum = sha1($key . '=' . json_encode((string) $row->$key), true);
if (! array_key_exists($checksum, $props)) {