- fixing undefined variables in customer_mysql.php

- fixing "only variables should be passed by reference" warning in customer_traffic.php
- removed unneeded require() in customer_aps.php, refs #6
- added missing field in sql-query in class.ticket.php
This commit is contained in:
Michael Kaufmann (d00p)
2010-02-05 08:36:35 +00:00
parent 8dcade976d
commit 2378d4319c
4 changed files with 5 additions and 4 deletions

View File

@@ -301,12 +301,12 @@ class ticket
}
else
{
$admin = $this->db->query_first("SELECT `email` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `adminid`='" . (int)$this->userinfo['adminid'] . "'");
$admin = $this->db->query_first("SELECT `name`, email` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `adminid`='" . (int)$this->userinfo['adminid'] . "'");
$mail->From = $this->settings['ticket']['noreply_email'];
$mail->FromName = $this->settings['ticket']['noreply_name'];
$mail->Subject = $mail_subject;
$mail->Body = $mail_body;
$mail->AddAddress($admin['email'], $admin['firstname'] . ' ' . $admin['name']);
$mail->AddAddress($admin['email'], $admin['name']);
if(!$mail->Send())
{