Index: /lib/functions.inc.php
===================================================================
--- /lib/functions.inc.php	(revision 7114)
+++ /lib/functions.inc.php	(revision 7115)
@@ -217,5 +217,5 @@
 		{
 
-			$arrayElement += (int)$addSet;
+			$arrayElement += (double)$addSet;
 			
 		}
@@ -929,5 +929,4 @@
 		if (doubleval($mwst) <= 0) return $value;
 
-
 		if ($brutto_netto == WPSG_BRUTTO)
 		{
Index: /lib/wpsg_basket.class.php
===================================================================
--- /lib/wpsg_basket.class.php	(revision 7114)
+++ /lib/wpsg_basket.class.php	(revision 7115)
@@ -149,4 +149,5 @@
 
 						$GLOBALS['wpsg_lastInsertIndex'] = $p_key;
+						
 						$_SESSION['wpsg']['basket'][$p_key]['menge'] += intval($menge);
 
@@ -170,10 +171,6 @@
 
 			$bOK = $this->shop->callMods('basket_produkttosession', array($produkt_key, &$menge, &$ses_data));
-			if ($bOK === false)
-			{
-                
-				return false;
-
-			}
+			
+			if ($bOK === false) return false;
             
 			// War noch nicht drin => neu hinzufÃŒgen
@@ -1657,5 +1654,5 @@
 
 			}
-
+ 
 			// Jetzt die jeweilige Steuer berechnen, damit die Anzeige stimmt
 			foreach ($arProductPrice[$base] as $tax_key_lang => $tax)
