Index: /mods/mod_statistics/wpsg_customerMap.class.php
===================================================================
--- /mods/mod_statistics/wpsg_customerMap.class.php	(revision 8092)
+++ /mods/mod_statistics/wpsg_customerMap.class.php	(revision 8093)
@@ -39,16 +39,13 @@
 			$arCustomer = $this->db->fetchAssoc("SELECT * FROM `".WPSG_TBL_KU."` ");
 			
-			foreach ($arCustomer as $c)
-			{
+			foreach ($arCustomer as $c) {
 				
 				// if (intval($c['id']) !== 799) continue;
 				
-				if (!wpsg_isSizedString($c['wpsg_mod_statistics_long']) && !wpsg_isSizedString($c['wpsg_mod_statistics_lat']) && $c['wpsg_mod_statistics_long'] !== '-1' &&  $c['wpsg_mod_statistics_lat'] !== '-1') 
-				{
+				if (!wpsg_isSizedString($c['wpsg_mod_statistics_long']) && !wpsg_isSizedString($c['wpsg_mod_statistics_lat']) && $c['wpsg_mod_statistics_long'] !== '-1' &&  $c['wpsg_mod_statistics_lat'] !== '-1') {
 					 
 					$arLongLat = $this->geocode($c['plz'].' '.$c['ort'].','.$c['strasse'].rtrim(' '.wpsg_getStr($c['nr'])));
 
-					if ($arLongLat !== null)
-					{
+					if ($arLongLat !== null && $arLongLat['lat'] !== null && $arLongLat['long'] !== null) {
 							
 						$this->db->UpdateQuery(WPSG_TBL_KU, array(
@@ -58,7 +55,7 @@
 					
 						$this->shop->view['wpsg_mod_statistics']['marker'][] = array(
-								'long' => $arLongLat['long'],
-								'lat' => $arLongLat['lat'],
-								'customer' => $c
+							'long' => $arLongLat['long'],
+							'lat' => $arLongLat['lat'],
+							'customer' => $c
 						);
 							
@@ -72,5 +69,4 @@
 							'wpsg_mod_statistics_lat' => '-1'
 						), "`id` = '".wpsg_q($c['id'])."'");
-						
 					}
 					
Index: /mods/mod_statistics/wpsg_turnover.class.php
===================================================================
--- /mods/mod_statistics/wpsg_turnover.class.php	(revision 8092)
+++ /mods/mod_statistics/wpsg_turnover.class.php	(revision 8093)
@@ -19,5 +19,5 @@
 		{
 			
-			$arData = $this->db->fetchRow(" 
+			$strQuery = " 
 				SELECT 
 					CAST(MIN(`cdate`) AS DATE) AS start,
@@ -27,5 +27,7 @@
 				WHERE ".
 				$this->getSqlWhere('validOrder')
-			);
+			;
+			 echo $strQuery;
+			$arData = $this->db->fetchRow($strQuery);
 			
 			if (wpsg_isSizedArray($arData))
@@ -107,5 +109,5 @@
 			
 			$this->addSorting($arData[0], $params['order'], ((!wpsg_isSizedString($params['sort']))?'tstamp':$params['sort']));
-			
+			 
 			if (isset($params['relatedpoint']) && is_numeric($params['relatedpoint']))
 			{
Index: /mods/wpsg_mod_statistics.class.php
===================================================================
--- /mods/wpsg_mod_statistics.class.php	(revision 8092)
+++ /mods/wpsg_mod_statistics.class.php	(revision 8093)
@@ -624,11 +624,13 @@
 					
 					if (isset($this->shop->view['standardFilter'][$this->shop->view['filter']['related']]) && isset($this->shop->view['standardFilter'][$this->shop->view['filter']['standard']])) {
-					
-						$r = $this->shop->view['standardFilter'][$this->shop->view['filter']['related']]['point'];
-						$p = $this->shop->view['standardFilter'][$this->shop->view['filter']['standard']]['point'];
+
+						if (!isset($this->shop->view['standardFilter'][$this->shop->view['filter']['related']]['point'])) wpsg_debug("FAIL");
+						
+						$r = $this->shop->view['standardFilter'][intval($this->shop->view['filter']['related'])]['point'];
+						$p = $this->shop->view['standardFilter'][intval($this->shop->view['filter']['standard'])]['point'];
 						
 					}
 					
-					if (!wpsg_isSizedInt($p)) $p = 0;
+					if (!is_numeric($p)) $p = 0;
 					
 					//wpsg_debug(get_class($objchartClass).":".$chartFunction);
