Fixed wrong handling of empty variable in fromgplus (#703)
parent
46222ae13b
commit
7c6aa340d9
|
@ -280,7 +280,7 @@ function fromgplus_cleanupgoogleproxy($fullImage, $image) {
|
||||||
if (!empty($cleaned["preview"]))
|
if (!empty($cleaned["preview"]))
|
||||||
$infoPreview = Image::getInfoFromURL($cleaned["preview"]);
|
$infoPreview = Image::getInfoFromURL($cleaned["preview"]);
|
||||||
else
|
else
|
||||||
$infoFull = ["0" => 0, "1" => 0];
|
$infoPreview = ["0" => 0, "1" => 0];
|
||||||
|
|
||||||
if (($infoPreview[0] >= $infoFull[0]) && ($infoPreview[1] >= $infoFull[1])) {
|
if (($infoPreview[0] >= $infoFull[0]) && ($infoPreview[1] >= $infoFull[1])) {
|
||||||
$temp = $cleaned["full"];
|
$temp = $cleaned["full"];
|
||||||
|
|
Loading…
Reference in New Issue