Index: /controller/wpsg_AdminController.class.php
===================================================================
--- /controller/wpsg_AdminController.class.php	(revision 8540)
+++ /controller/wpsg_AdminController.class.php	(revision 8541)
@@ -1771,5 +1771,5 @@
                 $this->update_option('wpsg_email_logo_watermark', @$_REQUEST['wpsg_email_logo_watermark'], false, false, WPSG_SANITIZE_CHECKBOX, ['allowEmpty' => true]);
 
-                if (intval($_REQUEST['wpsg_email_logo_del']) === 1) {
+                if (intval($_REQUEST['wpsg_email_logo_del']??0) === 1) {
 
                     @unlink($logoPath);
Index: /views/mods/mod_rechnungen/invoice_pdf.phtml
===================================================================
--- /views/mods/mod_rechnungen/invoice_pdf.phtml	(revision 8540)
+++ /views/mods/mod_rechnungen/invoice_pdf.phtml	(revision 8541)
@@ -176,4 +176,6 @@
 	AddRechnungPage($this, $pdf);
 
+	$deliverycountrytax = false;
+	
 	if ($this->get_option('wpsg_deliverycountrytax') === '1') {
 		$value = false;
