Fixed wrong handling of empty variable in fromgplus (#703)

This commit is contained in:
Michael Vogel 2018-08-14 08:36:31 +02:00 committed by Tobias Diekershoff
parent 46222ae13b
commit 7c6aa340d9

View File

@ -280,7 +280,7 @@ function fromgplus_cleanupgoogleproxy($fullImage, $image) {
if (!empty($cleaned["preview"]))
$infoPreview = Image::getInfoFromURL($cleaned["preview"]);
else
$infoFull = ["0" => 0, "1" => 0];
$infoPreview = ["0" => 0, "1" => 0];
if (($infoPreview[0] >= $infoFull[0]) && ($infoPreview[1] >= $infoFull[1])) {
$temp = $cleaned["full"];