]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fixed wrong handling of empty variable in fromgplus (#703)
authorMichael Vogel <icarus@dabo.de>
Tue, 14 Aug 2018 06:36:31 +0000 (08:36 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 14 Aug 2018 06:36:31 +0000 (08:36 +0200)
fromgplus/fromgplus.php

index 990a5855bf3b6c8530b005cbbdbf697306d1d84e..24ec46f3da0de17596dd9dfcb47648605f72d940 100644 (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"];