1
0
Fork 0
mirror of synced 2025-04-09 12:02:04 +00:00

fix some bugs

This commit is contained in:
Sergey 2017-09-27 10:04:58 +03:00
parent 704a447e16
commit 885cd9e372

View file

@ -281,18 +281,19 @@ 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);
}
}