From 2f1ae23b85be073bef1f16074f58f640a67ce7db Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Wed, 13 Feb 2013 22:41:55 -0500 Subject: [PATCH] Init $errors --- include/class.ticket.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/class.ticket.php b/include/class.ticket.php index 51abcbd62..b5af7a3ca 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -1492,6 +1492,7 @@ class Ticket { 'response' => $this->replaceVars($canned->getResponse()), 'cannedattachments' => $files); + $errors = array(); if(!($respId=$this->postReply($info, $errors, false))) return false; @@ -1647,6 +1648,7 @@ class Ticket { //Insert Internal Notes function logNote($title, $note, $poster='SYSTEM', $alert=true) { + $errors = array(); return $this->postNote( array('title' => $title, 'note' => $note), $errors, -- GitLab