From 61ad68f1e6e77196ac28bca0c57441f0c38ef90b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 12 May 2009 02:12:39 +0000 Subject: Deal gracefully with the case that the Gallery 2 instance didn't have any resizes (or thumbnails). Fix a case where we were over-weighting the max dimension for square resizes and thumbs. --- modules/g2_import/helpers/g2_import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/g2_import/helpers') diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 3ba37c86..c6ea2cc8 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -414,7 +414,7 @@ class g2_import_Core { "FROM [GalleryDerivativeImage], [GalleryDerivative] " . "WHERE [GalleryDerivativeImage::id] = [GalleryDerivative::id] " . " AND [GalleryDerivative::derivativeType] = ? " . - " AND [GalleryDerivativeImage::height] >= [GalleryDerivativeImage::width] " . + " AND [GalleryDerivativeImage::height] > [GalleryDerivativeImage::width] " . "GROUP BY [GalleryDerivativeImage::height] " . "ORDER by c DESC", array($g2_enum), -- cgit v1.2.3