summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/g2_import/helpers/g2_import.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index dbe2260d..5c72a2ec 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -349,7 +349,7 @@ class g2_import_Core {
// Compare the counts. If the best fitting height does not match the best fitting width,
// then pick the one with the largest count. Otherwise, sum them.
if ($sizes[$type]["size"] != $row[1]) {
- if ($row[0] > $sizes[$type["count"]]) {
+ if ($row[0] > $sizes[$type]["count"]]) {
$sizes[$type] = array("size" => $row[1], "count" => $row[0]);
}
} else {