From 7c6aa340d9125e5fba18b4519196871c84a7b5c2 Mon Sep 17 00:00:00 2001
From: Michael Vogel <icarus@dabo.de>
Date: Tue, 14 Aug 2018 08:36:31 +0200
Subject: [PATCH] Fixed wrong handling of empty variable in fromgplus (#703)

---
 fromgplus/fromgplus.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php
index 990a5855..24ec46f3 100644
--- a/fromgplus/fromgplus.php
+++ b/fromgplus/fromgplus.php
@@ -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"];
-- 
2.39.5