Skip to content
Snippets Groups Projects
Commit f5578287 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix E_WARNING from some thread attachments

parent c754f04f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment