fix (#27)
This commit is contained in:
parent
0173c71033
commit
3ccc1376c4
1 changed files with 11 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue