In scp/tickets.php ~ line 307 REPLACE
}elseif(!strcasecmp($_POST,'open')) { //Open ticket
$ticket=null;
$_POST=$_POST=0; //clean crap.
$_POST='Ticket created by staff';
if(!$_POST)
$errors='Summary of the issue required';
if($_POST && !in_array($_POST,array('email','phone','other')))
$errors='Invalid source';
WITH
}elseif(!strcasecmp($_POST,'open')) { //Open ticket
$ticket=null;
$_POST=$_POST=0; //clean crap.
$tmp_name = $_POST;
$services= mysql_query("SELECT email, phone FROM ".CLIENT_TABLE." WHERE concat(firstname,' ',lastname) LIKE '$tmp_name' ORDER BY firstname") or die("the query returned an error: " . mysql_error());
list($email,$phone) = db_fetch_row($services);
$_POST=$email;
$_POST=$phone;
$_POST='Ticket created by staff';
if(!$_POST)
$errors='Summary of the issue required';
if($_POST && !in_array($_POST,array('email','phone','other')))
$errors='Invalid source';
$alert_close = false;
$status = "";
if($_POST=="on")
{
$status = "closed";
if($_POST)
{
unset($_POST);
$alert_close = true;
}
}
Then in scp/tickets.php ~ line 334 REPLACE
if(($respId=$ticket->postResponse($msgId,$_POST,'none',null,false))) {
WITH
if(($respId=$ticket->postResponse($msgId,$_POST,'none',null,$status,$alert_close))) {