- minor fixes in admin_tickets (display of name)

- fixes of undefined mailer-class if admin-mail is invalid
This commit is contained in:
Michael Kaufmann (d00p)
2010-05-02 07:46:20 +00:00
parent a6408bf398
commit d8b0221c91
2 changed files with 11 additions and 19 deletions

View File

@@ -414,9 +414,9 @@ if($page == '')
/**
* Initialize the mailingsystem
*/
$mail = new PHPMailer();
if(PHPMailer::ValidateAddress($settings['panel']['adminmail']) !== false)
{
$mail = new PHPMailer();
{
// set return-to address and custom sender-name, see #76
$mail->SetFrom($settings['panel']['adminmail'], $settings['panel']['adminmail_defname']);
if ($settings['panel']['adminmail_return'] != '') {