1
0
Fork 0
mirror of synced 2025-04-06 22:53:36 +03:00
This commit is contained in:
Sergey 2017-09-27 10:37:04 +03:00 committed by Alex Lushpai
parent 0173c71033
commit 3ccc1376c4

View file

@ -282,17 +282,18 @@ class MoySkladICMLParser
}
}
if (isset($assortiment['product']['image']['meta']['href'])) {
$url = $assortiment['product']['image']['meta']['href'];
} elseif (isset($assortiment['image']['meta']['href'])) {
$url = $assortiment['image']['meta']['href'];
} else {
$url = '';
}
if (!empty($this->options['imgur'])) {
if ($url != '') {
$image = $this->requestImage($url);
if (isset($assortiment['product']['image']['meta']['href'])) {
$imageUrl = $assortiment['product']['image']['meta']['href'];
} elseif (isset($assortiment['image']['meta']['href'])) {
$imageUrl = $assortiment['image']['meta']['href'];
} else {
$imageUrl = '';
}
if ($imageUrl != '') {
$image = $this->requestImage($imageUrl);
}
}