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

pull/705/head
Michael Vogel 2018-08-14 08:36:31 +02:00 committed by Tobias Diekershoff
parent 46222ae13b
commit 7c6aa340d9
1 changed files with 1 additions and 1 deletions

View File

@ -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"];