Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 7879)
+++ /controller/wpsg_ShopController.class.php	(revision 7880)
@@ -2313,6 +2313,5 @@
 
 				}
-			} }
-			@closedir($handle);
+			} @closedir($handle); }
 
 			$handle = @opendir(WPSG_PATH_PRODUKTTEMPLATES_UV_OLD);
@@ -2330,6 +2329,5 @@
 				}
 
-			} }
-			@closedir($handle);
+			} @closedir($handle); }
 
 			$handle = @opendir(WPSG_PATH_PRODUKTTEMPLATES_TV);
@@ -2348,6 +2346,5 @@
 				}
 
-			} }
-			@closedir($handle);
+			} @closedir($handle); }
 
             $handle = @opendir(WPSG_PATH_PRODUKTTEMPLATES_CTV);
@@ -2366,6 +2363,5 @@
                 }
 
-            } }
-            @closedir($handle);
+            } @closedir($handle); }
 
             $this->callMods('loadProduktTemplates', [&$arTemplates, $key, $fullpath, $view_path]);
Index: /lib/functions.inc.php
===================================================================
--- /lib/functions.inc.php	(revision 7879)
+++ /lib/functions.inc.php	(revision 7880)
@@ -750,5 +750,5 @@
 	 * @throws \wpsg\Exception
 	 */
-	function wpsg_checkRequest($name, $arCheckInputArguments, $strLabel = null, &$data, $value = null) {
+	function wpsg_checkRequest($name, $arCheckInputArguments, $strLabel = null, &$data = [], $value = null) {
 		
 		$type = $arCheckInputArguments[0];
@@ -2037,5 +2037,5 @@
 	 * @return true or false
 	 */
-	function wpsg_fileUpload($strPathKey = '', $arFile)
+	function wpsg_fileUpload($strPathKey = '', $arFile = [])
 	{
 		
Index: /mods/mod_abo/wpsg_abo.php
===================================================================
--- /mods/mod_abo/wpsg_abo.php	(revision 7879)
+++ /mods/mod_abo/wpsg_abo.php	(revision 7880)
@@ -11,5 +11,5 @@
         static $_tableName = 'WPSG_TBL_ABO';
         public static $arState = [];
-        
+
         const STATE_RUNNING = 1;
         const STATE_INEXTENSION = 2;
Index: /mods/wpsg_mod_productvars.class.php
===================================================================
--- /mods/wpsg_mod_productvars.class.php	(revision 7879)
+++ /mods/wpsg_mod_productvars.class.php	(revision 7880)
@@ -569,8 +569,8 @@
 		} // public function product_bottom(&$produkt_id, $template_index)
 
-		public function mail_row($index, $produkt)
-		{
-			if ($this->shop->get_option('wpsg_mod_productvars_showMail') != '1')
-			{
+		public function mail_row($index, $produkt) {
+
+			if ($this->shop->get_option('wpsg_mod_productvars_showMail') === '1') {
+
 				$order_id = $this->shop->view['o_id'];
 	
@@ -640,9 +640,8 @@
 		}
 
-		public function overview_row(&$p, $i)
-		{
+		public function overview_row(&$p, $i) {
 			
-			if ($this->shop->get_option('wpsg_mod_productvars_showOverview') != '1')
-			{
+			if ($this->shop->get_option('wpsg_mod_productvars_showOverview') == '1') {
+
 				$produkt_id = $this->shop->basket->getProduktDBID($p['id']);
 	
Index: /views/mods/mod_productvars/settings_edit.phtml
===================================================================
--- /views/mods/mod_productvars/settings_edit.phtml	(revision 7879)
+++ /views/mods/mod_productvars/settings_edit.phtml	(revision 7880)
@@ -70,5 +70,5 @@
 				<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvars_showBasket', __('Produktvariable(n) im Warenkorbtemplate darstellen', 'wpsg'), $this->get_option('wpsg_mod_productvars_showBasket'), array('help' => 'wpsg_mod_productvars_showBasket')); ?>
 				<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvars_showOverview', __('Produktvariable(n) im BestellÃŒbersichtstemplate darstellen', 'wpsg'), $this->get_option('wpsg_mod_productvars_showOverview'), array('help' => 'wpsg_mod_productvars_showOverview')); ?>
-				<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvars_showMail', __('Produktvariable(n) im Mailtemplate nicht darstellen', 'wpsg'), $this->get_option('wpsg_mod_productvars_showMail'), array('help' => 'wpsg_mod_productvars_showMail')); ?>
+				<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvars_showMail', __('Produktvariable(n) im Mailtemplate darstellen', 'wpsg'), $this->get_option('wpsg_mod_productvars_showMail'), array('help' => 'wpsg_mod_productvars_showMail')); ?>
 
 			</div>
