Commit 5d588920 authored by Sebastian Castro's avatar Sebastian Castro

Prevent wrong images url

parent 01f930cf
......@@ -283,7 +283,7 @@ class ElementImportService
foreach($images as $imageUrl)
{
if (strlen($imageUrl) > 5)
if (is_string($imageUrl) && strlen($imageUrl) > 5)
{
$elementImage = new ElementImage();
$elementImage->setExternalImageUrl($imageUrl);
......
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