Index: /lib/functions.inc.php
===================================================================
--- /lib/functions.inc.php	(revision 7427)
+++ /lib/functions.inc.php	(revision 7428)
@@ -545,6 +545,6 @@
 			case WPSG_SANITIZE_INT: 
 				
-				if (intval($val) == $val) $bReturn = true;
-				
+				if (strval(intval($val)) === strval($val)) $bReturn = true;
+				 
 				break;
 							
Index: /mods/wpsg_mod_relatedproducts.class.php
===================================================================
--- /mods/wpsg_mod_relatedproducts.class.php	(revision 7427)
+++ /mods/wpsg_mod_relatedproducts.class.php	(revision 7428)
@@ -62,5 +62,5 @@
 			$this->shop->view['wpsg_mod_relatedproducts']['arTemplates'] = $this->shop->loadProduktTemplates(true);
 			array_unshift($this->shop->view['wpsg_mod_relatedproducts']['arTemplates'], __('FÃŒr jedes Produkt einstellbar', 'wpsg'));		
-			
+			 
 			$this->shop->render(WPSG_PATH_VIEW.'/mods/mod_relatedproducts/settings_edit.phtml');
 			
@@ -71,19 +71,17 @@
 
 			$arTemplateFiles = $this->shop->loadProduktTemplates(true);
-			
-			$this->shop->update_option('wpsg_mod_relatedproducts_template', $_REQUEST['wpsg_mod_relatedproducts_template'], false, false, "wpsg_in_array", [
-				['0'] + array_values($arTemplateFiles)
-			]); 
-			
-			$this->shop->update_option('wpsg_mod_relatedproducts_synchron', $_REQUEST['wpsg_mod_relatedproducts_synchron'], false, false, "key");
-			$this->shop->update_option('wpsg_mod_relatedproducts_showBasket', $_REQUEST['wpsg_mod_relatedproducts_showBasket'], false, false, "key");
-			$this->shop->update_option('wpsg_mod_relatedproducts_showBasketLimit', $_REQUEST['wpsg_mod_relatedproducts_showBasketLimit'], false, false, "key");
-			$this->shop->update_option('wpsg_mod_relatedproducts_showBasketTemplate', $_REQUEST['wpsg_mod_relatedproducts_showBasketTemplate'], false, false, "wpsg_in_array", [
-				['0'] + array_values($arTemplateFiles)
+			 
+			$this->shop->update_option('wpsg_mod_relatedproducts_template', $_REQUEST['wpsg_mod_relatedproducts_template'], false, false, WPSG_SANITIZE_VALUES, array_keys(['0'] + $arTemplateFiles)); 
+			
+			$this->shop->update_option('wpsg_mod_relatedproducts_synchron', $_REQUEST['wpsg_mod_relatedproducts_synchron'], false, false, WPSG_SANITIZE_CHECKBOX);
+			$this->shop->update_option('wpsg_mod_relatedproducts_showBasket', $_REQUEST['wpsg_mod_relatedproducts_showBasket'], false, false, WPSG_SANITIZE_CHECKBOX);
+			$this->shop->update_option('wpsg_mod_relatedproducts_showBasketLimit', $_REQUEST['wpsg_mod_relatedproducts_showBasketLimit'], false, false, WPSG_SANITIZE_TEXTFIELD);
+			$this->shop->update_option('wpsg_mod_relatedproducts_showBasketTemplate', $_REQUEST['wpsg_mod_relatedproducts_showBasketTemplate'], false, false, WPSG_SANITIZE_VALUES, [
+				['0'] + array_keys($arTemplateFiles)
 			]);
-			$this->shop->update_option('wpsg_mod_relatedproducts_showAjaxDialog', $_REQUEST['wpsg_mod_relatedproducts_showAjaxDialog'], false, false, "key");
-			$this->shop->update_option('wpsg_mod_relatedproducts_showAjaxDialogLimit', $_REQUEST['wpsg_mod_relatedproducts_showAjaxDialogLimit'], false, false, "key");
-			$this->shop->update_option('wpsg_mod_relatedproducts_showAjaxDialogTemplate', $_REQUEST['wpsg_mod_relatedproducts_showAjaxDialogTemplate'], false, false, "key");
-			
+			$this->shop->update_option('wpsg_mod_relatedproducts_showAjaxDialog', $_REQUEST['wpsg_mod_relatedproducts_showAjaxDialog'], false, false, WPSG_SANITIZE_CHECKBOX);
+			$this->shop->update_option('wpsg_mod_relatedproducts_showAjaxDialogLimit', $_REQUEST['wpsg_mod_relatedproducts_showAjaxDialogLimit'], false, false, WPSG_SANITIZE_TEXTFIELD);
+			$this->shop->update_option('wpsg_mod_relatedproducts_showAjaxDialogTemplate', $_REQUEST['wpsg_mod_relatedproducts_showAjaxDialogTemplate'], false, false, WPSG_SANITIZE_INT);
+		 
 		} // public function settings_save
 		
Index: /views/produkttemplates/standard.phtml
===================================================================
--- /views/produkttemplates/standard.phtml	(revision 7427)
+++ /views/produkttemplates/standard.phtml	(revision 7428)
@@ -80,5 +80,5 @@
 
 		<?php /* Abfrage Preisanzeige nur fÃŒr eingeloggte User aktiv und User eingeloggt START*/ ?>
-		<?php if ($this->view['oProduct']->canDisplayPrice()) { ?>
+		<?php if ($this->hasMod('wpsg_mod_kundenverwaltung') &&  $this->view['oProduct']->canDisplayPrice()) { ?>
 
 			<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
Index: /wpshopgermany.php
===================================================================
--- /wpshopgermany.php	(revision 7427)
+++ /wpshopgermany.php	(revision 7428)
@@ -81,9 +81,9 @@
 	
  	// EingabeÃŒberprÃŒfung
-	define('WPSG_SANITIZE_INT', 0);
+ 	define(WPSG_SANITIZE_INT, 0);
 	define('WPSG_SANITIZE_VALUES', 1);
-	define('WPSG_SANITIZE_CHECKBOX', 2); 
-	define('WPSG_SANITIZE_TEXTFIELD', 3);
-	define('WPSG_SANITIZE_APIKEY', 4);
+	define(WPSG_SANITIZE_CHECKBOX, 2); 
+	define(WPSG_SANITIZE_TEXTFIELD, 3);
+	define(WPSG_SANITIZE_APIKEY, 4);
 	define('WPSG_SANITIZE_FLOAT', 5);
 	define('WPSG_SANITIZE_TAXKEY', 6);
