Index: /controller/wpsg_AdminController.class.php
===================================================================
--- /controller/wpsg_AdminController.class.php	(revision 7522)
+++ /controller/wpsg_AdminController.class.php	(revision 7523)
@@ -2221,75 +2221,78 @@
 				}
 
-				if (file_exists($_FILES['wpsg_settings']['tmp_name']))
-				{
-
-					$xml = simplexml_load_file($_FILES['wpsg_settings']['tmp_name']);
-
-					if ($xml === false)
-					{
-
-						$this->shop->addBackendError(__('Keine gÃŒltige XML Einstellungsdatei angegeben!', 'wpsg'));
-
+				if (wpsg_isSizedString($_FILES['wpsg_settings']['tmp_name'])) {
+				
+					if (file_exists($_FILES['wpsg_settings']['tmp_name'])) {
+
+						$xml = simplexml_load_file($_FILES['wpsg_settings']['tmp_name']);
+	
+						if ($xml === false)
+						{
+	
+							$this->shop->addBackendError(__('Keine gÃŒltige XML Einstellungsdatei angegeben!', 'wpsg'));
+	
+						}
+						else
+						{
+	
+							$path ="/wpsg/settings/option";
+							$res = $xml->xpath($path);
+	
+							foreach ($res as $k => $v)
+							{
+	
+								$a = $v->attributes();
+	
+								$bExists = $this->db->fetchOne("SELECT `option_id` FROM `".$wpdb->prefix."options` WHERE `option_name` = '".wpsg_q(strval($a->option_name))."' ");
+	
+								// Wenn eine Seite importiert wird,
+								if(strpos(wpsg_q(strval($a->option_name)), "wpsg_page") !== false && wpsg_isSizedInt(wpsg_q(strval($a->option_value))))
+								{
+									// welche in der momentanen Instanz nicht existiert
+									if(!get_post_status(wpsg_q(strval($a->option_value))))
+									{
+	
+										$this->shop->addBackendError(wpsg_translate(__('Die importierte Seite mit der ID #1# ist noch nicht angelegt worden. Daher wird sie auf "Keine Zuordnung" gestellt.', "wpng"), wpsg_q(strval($a->option_value))));
+										$a->option_value = 0;
+	
+	
+									}
+	
+								}
+	
+								if ($bExists > 0)
+								{
+	
+									$this->db->UpdateQuery($wpdb->prefix."options", array(
+										"option_value" => wpsg_q(strval($a->option_value))
+									), "`option_name` = '".wpsg_q(strval($a->option_name))."'");
+	
+								}
+								else
+								{
+	
+									$this->db->ImportQuery($wpdb->prefix."options", array(
+										"blog_id" => wpsg_q(strval($a->blog_id)),
+										"option_name" => wpsg_q(strval($a->option_name)),
+										"option_value" => wpsg_q(strval($a->option_value)),
+										"autoload" => wpsg_q(strval($a->autoload))
+									), true);
+	
+								}
+	
+							}
+	
+							$this->shop->addBackendMessage(__('Einstellungen wurden erfolgreich importiert.', 'wpsg'));
+	
+						}
+	
 					}
 					else
 					{
-
-						$path ="/wpsg/settings/option";
-			        	$res = $xml->xpath($path);
-
-			        	foreach ($res as $k => $v)
-			        	{
-
-			        		$a = $v->attributes();
-
-			        		$bExists = $this->db->fetchOne("SELECT `option_id` FROM `".$wpdb->prefix."options` WHERE `option_name` = '".wpsg_q(strval($a->option_name))."' ");
-
-					        // Wenn eine Seite importiert wird,
-					        if(strpos(wpsg_q(strval($a->option_name)), "wpsg_page") !== false && wpsg_isSizedInt(wpsg_q(strval($a->option_value))))
-					        {
-						        // welche in der momentanen Instanz nicht existiert
-						        if(!get_post_status(wpsg_q(strval($a->option_value))))
-						        {
-
-							        $this->shop->addBackendError(wpsg_translate(__('Die importierte Seite mit der ID #1# ist noch nicht angelegt worden. Daher wird sie auf "Keine Zuordnung" gestellt.', "wpng"), wpsg_q(strval($a->option_value))));
-							        $a->option_value = 0;
-
-
-						        }
-
-					        }
-
-			        		if ($bExists > 0)
-			        		{
-
-			        			$this->db->UpdateQuery($wpdb->prefix."options", array(
-			        				"option_value" => wpsg_q(strval($a->option_value))
-			        			), "`option_name` = '".wpsg_q(strval($a->option_name))."'");
-
-			        		}
-			        		else
-			        		{
-
-			        			$this->db->ImportQuery($wpdb->prefix."options", array(
-			        				"blog_id" => wpsg_q(strval($a->blog_id)),
-			        				"option_name" => wpsg_q(strval($a->option_name)),
-			        				"option_value" => wpsg_q(strval($a->option_value)),
-			        				"autoload" => wpsg_q(strval($a->autoload))
-			        			), true);
-
-			        		}
-
-			        	}
-
-			        	$this->shop->addBackendMessage(__('Einstellungen wurden erfolgreich importiert.', 'wpsg'));
-
-					}
-
-				}
-				else
-				{
-
-					$this->shop->addBackendError(__('Bitte eine Einstellungsdatei angeben!', 'wpsg'));
-
+	
+						$this->shop->addBackendError(__('Bitte eine Einstellungsdatei angeben!', 'wpsg'));
+	
+					}
+					
 				}
 
@@ -2331,6 +2334,6 @@
 			    $this->update_option('wpsg_kleinunternehmer', $_REQUEST['wpsg_kleinunternehmer'], false, false, WPSG_SANITIZE_CHECKBOX);
 			    $this->update_option('wpsg_kleinunternehmer_text', $_REQUEST['wpsg_kleinunternehmer_text'], false, false, WPSG_SANITIZE_TEXTFIELD);
-			    $this->update_option('wpsg_preisangaben', $_REQUEST['wpsg_preisangaben'], false, false, WPSG_SANITIZE_VALUES, ['1, 0']);
-			    $this->update_option('wpsg_preisangaben_frontend', $_REQUEST['wpsg_preisangaben_frontend'], false, false, WPSG_SANITIZE_VALUES, ['1, 0']);
+			    $this->update_option('wpsg_preisangaben', $_REQUEST['wpsg_preisangaben'], false, false, WPSG_SANITIZE_VALUES, ['1', '0']);
+			    $this->update_option('wpsg_preisangaben_frontend', $_REQUEST['wpsg_preisangaben_frontend'], false, false, WPSG_SANITIZE_VALUES, ['1', '0']);
 				$this->update_option('wpsg_hideemptyshipping', $_REQUEST['wpsg_hideemptyshipping'], false, false, WPSG_SANITIZE_CHECKBOX);
 				$this->update_option('wpsg_hideemptypayment', $_REQUEST['wpsg_hideemptypayment'], false, false, WPSG_SANITIZE_CHECKBOX);
Index: /lib/filter_functions.inc.php
===================================================================
--- /lib/filter_functions.inc.php	(revision 7522)
+++ /lib/filter_functions.inc.php	(revision 7523)
@@ -518,5 +518,5 @@
 			if (wpsg_isSizedArray($_SESSION['sanitization_err_fields'])) {
 				
-				ob_start(); wpsg_debug($_SESSION['sanitization_err_fields']); $content .= '<div style="position:fixed; background-color:lightgrey; z-index:10000; left:50%; top:50%; width:500px; height:500px; overflow:scroll; margin-left:-250px; margin-top:-250px;">'.ob_get_contents().'</div>'; ob_end_clean();
+				//ob_start(); wpsg_debug($_SESSION['sanitization_err_fields']); $content .= '<div style="position:fixed; background-color:lightgrey; z-index:10000; left:50%; top:50%; width:500px; height:500px; overflow:scroll; margin-left:-250px; margin-top:-250px;">'.ob_get_contents().'</div>'; ob_end_clean();
 				
 	        	foreach($_SESSION['sanitization_err_fields'] as $field_name => $nCalls) {
