Index: /changelog
===================================================================
--- /changelog	(revision 8487)
+++ /changelog	(revision 8488)
@@ -654,2 +654,3 @@
 #4.4.12
 - Feature: Exportprofile/Statistik - Export von KÃ€ufen
+- Bugfix: Exportprofile - Problem mit Feld "Anzahl Produkte" korrigiert
Index: /model/wpsg_order.class.php
===================================================================
--- /model/wpsg_order.class.php	(revision 8487)
+++ /model/wpsg_order.class.php	(revision 8488)
@@ -326,6 +326,9 @@
 		 * Gibt die Anzahl zurÃŒck, wie oft das Produkt in der Bestellung vorkommt
 		 */
-		public function getProductCount($product_id)
-		{
+		public function getProductCount($product_id = null) {
+			
+			$strQueryWHERE = "";
+			
+			if ($product_id !== null) $strQueryWHERE .= " AND `p_id` = '".wpsg_q($product_id)."' ";
 			
 			return $this->db->fetchOne("
@@ -335,9 +338,9 @@
 					`".WPSG_TBL_ORDERPRODUCT."`
 				WHERE
-					`p_id` = '".wpsg_q($product_id)."' AND
 					`o_id` = '".wpsg_q($this->id)."'
+					".$strQueryWHERE."
 			");
 			
-		} // public function getProductCount($product_id)
+		}
 		
 		/**
