From f5578287f8aff3773f421df4df1557fceb82ee7f Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 7 Apr 2014 17:07:11 -0500 Subject: [PATCH] oops: Fix E_WARNING from some thread attachments --- include/class.thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.thread.php b/include/class.thread.php index 44a9dd47d..5c0ac5d97 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -532,7 +532,7 @@ Class ThreadEntry { $sql ='INSERT IGNORE INTO '.TICKET_ATTACHMENT_TABLE.' SET created=NOW() ' .' ,file_id='.db_input($fileId) .' ,ticket_id='.db_input($this->getTicketId()) - .' ,inline='.db_input($file['inline'] ? 1 : 0) + .' ,inline='.db_input(@$file['inline'] ? 1 : 0) .' ,ref_id='.db_input($this->getId()); return (db_query($sql) && ($id=db_insert_id()))?$id:0; -- GitLab