Index: /lib/filter_functions.inc.php
===================================================================
--- /lib/filter_functions.inc.php	(revision 7573)
+++ /lib/filter_functions.inc.php	(revision 7574)
@@ -471,6 +471,6 @@
                     $wpsg_update_data['updateData'] = (object)$wpsg_update_data['updateData'];
     
-                    $GLOBALS['wpsg_sc']->update_option('wpsg_lastupdate', strval(time()), true);
-                    $GLOBALS['wpsg_sc']->update_option('wpsg_updatedata', $wpsg_update_data, true);
+                    $GLOBALS['wpsg_sc']->update_option('wpsg_lastupdate', strval(time()), true, false, WPSG_SANITIZE_NONE);
+                    $GLOBALS['wpsg_sc']->update_option('wpsg_updatedata', $wpsg_update_data, true, false, WPSG_SANITIZE_NONE);
     
                     $GLOBALS['wpsg_sc']->update_option('wp_installed', (($wpsg_update_data['returnCode']  != '0')?'1':'0'));
@@ -493,7 +493,10 @@
     }
     
-    function wpsg_update($data)
-    {
-    
+    function wpsg_update($data) {
+	
+    	// Unklar warum das passiert aber es ist bei Kunden aufgetreten
+		if (!is_object($data)) return $data;
+		if (!isset($update_plugins->response) || !is_array($data->response)) $data->response = array();
+    	
         $wpsg_update_data = wpsg_get_update_data();
 
Index: /lib/functions.inc.php
===================================================================
--- /lib/functions.inc.php	(revision 7573)
+++ /lib/functions.inc.php	(revision 7574)
@@ -603,7 +603,21 @@
 			case WPSG_SANITIZE_ARRAY_LANG:
 			case WPSG_SANITIZE_TEXTFIELD:
-				
-				if (sanitize_text_field($val) == trim($val)) $bReturn = true;
-				
+			
+				if (is_array($val)) {
+					
+					$bReturn = true;
+					
+					foreach ($val as $k => $v) {
+						
+						$bReturn = $bReturn && wpsg_checkInput($v, WPSG_SANITIZE_TEXTFIELD);
+						
+					}
+					
+				} else {
+					
+					if (sanitize_text_field($val) == trim($val)) $bReturn = true;
+					
+				}
+				 
 				break;
 				
Index: /views/mailtemplates/html/order.phtml
===================================================================
--- /views/mailtemplates/html/order.phtml	(revision 7573)
+++ /views/mailtemplates/html/order.phtml	(revision 7574)
@@ -196,5 +196,5 @@
 			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><strong><?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?></strong></td>
 		</tr>
-		<?php $this->callMods('mail_order_end', [$this->view['basket']['arCalculation'], true]); ?>	
+		<?php $this->callMods('mail_order_end', [&$this->view['basket']['arCalculation'], true]); ?>	
 	</table>
 </div>
Index: /views/mailtemplates/order.phtml
===================================================================
--- /views/mailtemplates/order.phtml	(revision 7573)
+++ /views/mailtemplates/order.phtml	(revision 7574)
@@ -120,5 +120,5 @@
      <?php echo wpsg_pad_right(__('Gesamtpreis:', 'wpsg'), 37); ?>
 <?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')), 34); ?>
-<?php $this->callMods('mail_order_end', [$this->view['basket']['arCalculation'], false]); ?>
+<?php $this->callMods('mail_order_end', [&$this->view['basket']['arCalculation'], false]); ?>
  
 <?php $this->callMods('mail_aftercalculation', array(&$this->view['basket']['checkout']['o_id'])); ?>
