Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
protich committed Feb 14, 2013
1 parent 76f9216 commit a407945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/class.ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ function postMessage($vars, $source='', $alerts=true) {
if(!$alerts) return $msgid; //Our work is done...

$autorespond = true;
if ($autorespond && $headers && TicketFilter::isAutoResponse(Mail_Parse::splitHeaders($headers)))
if ($autorespond && $vars['header'] && TicketFilter::isAutoResponse($vars['header']))
$autorespond=false;

$this->onMessage($autorespond); //must be called b4 sending alerts to staff.
Expand Down Expand Up @@ -1792,7 +1792,7 @@ function importAttachments($attachments, $refid, $type, $checkFileTypes=true) {
}

if($info['error']) {
$this->logNote('File Import Error', $error, 'SYSTEM', false);
$this->logNote('File Import Error', $info['error'], 'SYSTEM', false);
} elseif (($id=$this->saveAttachment($info, $refid, $type))) {
$files[] = $id;
}
Expand Down

0 comments on commit a407945

Please sign in to comment.