Index: /controller/wpsg_AdminController.class.php
===================================================================
--- /controller/wpsg_AdminController.class.php	(revision 7366)
+++ /controller/wpsg_AdminController.class.php	(revision 7367)
@@ -2044,4 +2044,8 @@
 				$this->update_option('dataprotectioncommissioner_cookietext', $_REQUEST['dataprotectioncommissioner_cookietext']);
 				
+				$this->update_option('wpsg_customerdatadelete', $_REQUEST['wpsg_customerdatadelete']);
+				$this->update_option('wpsg_customerdatedelete_who', $_REQUEST['wpsg_customerdatedelete_who']);
+				$this->update_option('wpsg_customerdatadelete_unit', $_REQUEST['wpsg_customerdatadelete_unit']);
+				
 				$this->addBackendMessage(__('Einstellungen gespeichert.', 'wpsg'));
 				
Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 7366)
+++ /controller/wpsg_ShopController.class.php	(revision 7367)
@@ -169,7 +169,10 @@
 		    
 		    $wpsg_customerdatadelete = $this->get_option('wpsg_customerdatadelete');
+		   	$wpsg_customerdatedelete_who = $this->get_option('wpsg_customerdatedelete_who'); 
 		    
 		    if (wpsg_isSizedInt($wpsg_customerdatadelete)) {
-		    
+			
+				$strQueryWHERE = "";
+		    	
 		        switch ($this->get_option('wpsg_customerdatadelete_unit')) {
 		            
@@ -189,4 +192,10 @@
 		            
                 }
+                
+                if ($wpsg_customerdatedelete_who === '1') { // Nur GÃ€ste
+	
+					$strQueryWHERE = " AND K.`passwort_saltmd5` = '' ";
+		        	
+				}
 		        
                 $strQuery = "
@@ -197,5 +206,6 @@
                         `".WPSG_TBL_KU."` AS K
                     WHERE
-                        K.`status` != -1		            
+                        K.`status` != -1
+                        ".$strQueryWHERE."		            
                     HAVING
                         ".$strQueryHAVING."  
Index: /views/admin/dataprotection.phtml
===================================================================
--- /views/admin/dataprotection.phtml	(revision 7366)
+++ /views/admin/dataprotection.phtml	(revision 7367)
@@ -48,4 +48,5 @@
 						
                 <?php echo wpsg_drawForm_Input('wpsg_customerdatadelete', __('Letzte AktivitÃ€t Ã€lter als', 'wpsg'), $this->get_option('wpsg_customerdatadelete'));?>
+				<?php echo wpsg_drawForm_Select('wpsg_customerdatedelete_who', __('Kundenart', 'wpsg'), ['0' => __('Alle', 'wpsg'), '1' => __('Nur Gastkunden', 'wpsg')], $this->get_option('wpsg_customerdatedelete_who')); ?>
                 <?php echo wpsg_drawForm_Select('wpsg_customerdatadelete_unit', __('Einheit', 'wpsg'), array('0' => __('Tag(e)', 'wpsg'), '1' => __('Monat(e)', 'wpsg'), '2' => __('Jahr(e)', 'wpsg')), $this->get_option('wpsg_customerdatadelete_unit')); ?>
 								
