From f65deb3e7c512994c08d77b11af63bc1c5fa3e4c Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 20 Jan 2010 07:52:43 +0000 Subject: [PATCH] errorreport: Fix sending of error reports. Fixes issue 258. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2122 44740490-163a-0410-bde0-09ae8108e29a --- www/errorreport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/errorreport.php b/www/errorreport.php index 2661dcc3c..4d424e68d 100644 --- a/www/errorreport.php +++ b/www/errorreport.php @@ -95,9 +95,9 @@ if(array_key_exists('email', $_POST)) { /* Send the email. */ $toaddress = $config->getString('technicalcontact_email', 'na@example.org'); -if($email !== 'na@example.org') { +if ($toaddress !== 'na@example.org') { - $email = new SimpleSAML_XHTML_EMail($email, 'simpleSAMLphp error report', $from); + $email = new SimpleSAML_XHTML_EMail($toaddress, 'simpleSAMLphp error report', $from); $email->setBody($message); $email->send(); } -- GitLab