Commit 9dbfab52 authored by Sebastian Castro's avatar Sebastian Castro

Improve import images

parent 299279cb
......@@ -269,7 +269,9 @@ class ElementImportService
private function createImages($element, $row)
{
if (strlen($row['images']) > 0) $images = explode(',', $row['images']);
$images_raw = $row['images'];
if (is_string($images_raw) && strlen($images_raw) > 0) $images = explode(',', $row['images']);
else if (is_array($images_raw)) $images = $images_raw;
else
{
$keys = array_keys($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