diff --git a/include/class.pdf.php b/include/class.pdf.php index 34828aa2caf2c91fd9786deb5f946de71e4786af..87e68a7d5277450dfb87eb7bfa54637449f1e105 100644 --- a/include/class.pdf.php +++ b/include/class.pdf.php @@ -202,7 +202,7 @@ class Ticket2PDF extends FPDF foreach($attachments as $attachment) $files[]= $attachment['name']; - $text="\n\n[".implode(', ',$files)."]\n"; + $text.="\nFiles Attached: [".implode(', ',$files)."]\n"; } $this->WriteText($w*2, $text, 1); $this->Ln(5); diff --git a/include/class.ticket.php b/include/class.ticket.php index 84eafbd980a1dac5d5f72428f704801ed90a0267..6b933239de4bcc181f82a2b88724789e3cc5454c 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -577,7 +577,7 @@ class Ticket{ if($type && is_array($type)) $sql.=" AND thread.thread_type IN('".implode("','", $type)."')"; - else + elseif($type) $sql.=' AND thread.thread_type='.db_input($type); $sql.=' GROUP BY thread.id '