Index: /lib/wpsg_imagehandler.class.php
===================================================================
--- /lib/wpsg_imagehandler.class.php	(revision 6627)
+++ /lib/wpsg_imagehandler.class.php	(revision 6628)
@@ -36,5 +36,13 @@
 			$arAttachmentIDs = $this->getAttachmentIDs($product_key, $vari_id, $all);
 				
-			if (wpsg_isSizedArray($arAttachmentIDs)) return array_values($arAttachmentIDs)[0];
+			if (wpsg_isSizedArray($arAttachmentIDs))
+            {
+
+                // return array_values($arAttachmentIDs)[0];
+
+                $arValues = array_values($arAttachmentIDs);
+                return $arValues[0];
+
+            }
 			else return false;
 			
