Index: /controller/wpsg_BasketController.class.php
===================================================================
--- /controller/wpsg_BasketController.class.php	(revision 5794)
+++ /controller/wpsg_BasketController.class.php	(revision 5796)
@@ -76,6 +76,10 @@
 
 			// Sollte es nur eine Versand/Zahlungsart geben, dann diese verwenden
-			if (sizeof($this->shop->arShipping) == 1) $_SESSION['wpsg']['checkout']['shipping'] = array_keys($this->shop->arShipping)[0];
-			if (sizeof($this->shop->arPayment) == 1) $_SESSION['wpsg']['checkout']['payment'] = array_keys($this->shop->arPayment)[0];
+			
+			$array_keys_shipping = array_keys($this->shop->arShipping);
+			if (sizeof($this->shop->arShipping) == 1) $_SESSION['wpsg']['checkout']['shipping'] = $array_keys_shipping[0];
+			
+			$array_keys_payment = array_keys($this->shop->arPayment); 
+			if (sizeof($this->shop->arPayment) == 1) $_SESSION['wpsg']['checkout']['payment'] = $array_keys_payment[0];
 			
 			if (sizeof($this->shop->arShipping) == 1 || sizeof($this->shop->arPayment) == 1)
Index: /mods/wpsg_mod_productvariants.class.php
===================================================================
--- /mods/wpsg_mod_productvariants.class.php	(revision 5794)
+++ /mods/wpsg_mod_productvariants.class.php	(revision 5796)
@@ -229,5 +229,6 @@
 					{
 
-						$arDefaultKey[] = $variant_id.':'.array_keys($variant_data['arVariation'])[0];
+						$arDefaultKeyValues = $variant_id.':'.array_keys($variant_data['arVariation']);
+						$arDefaultKey[] = $arDefaultKeyValues[0];
 
 					}
