Merge pull request #10096 from annando/parseurl-photos
ParseUrl: Remove image when it doesn't fit the requirements
This commit is contained in:
commit
f1b60414b3
1 changed files with 4 additions and 0 deletions
|
@ -524,7 +524,11 @@ class ParseUrl
|
||||||
$image['contenttype'] = $photodata['mime'];
|
$image['contenttype'] = $photodata['mime'];
|
||||||
unset($image['url']);
|
unset($image['url']);
|
||||||
ksort($image);
|
ksort($image);
|
||||||
|
} else {
|
||||||
|
$image = [];
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$image = [];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue