Skip to content
Snippets Groups Projects
Unverified Commit cfa3f3e3 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #29 from JediKev/issue/thread-getId-on-non-object

thread: getId On Non-Object
parents da0c41b9 e3b333ed
No related branches found
No related tags found
No related merge requests found
...@@ -2863,7 +2863,8 @@ implements TemplateVariable { ...@@ -2863,7 +2863,8 @@ implements TemplateVariable {
function addResponse($vars, &$errors) { function addResponse($vars, &$errors) {
$vars['threadId'] = $this->getId(); $vars['threadId'] = $this->getId();
$vars['userId'] = 0; $vars['userId'] = 0;
$vars['pid'] = $this->getLastMessage()->getId(); if ($message = $this->getLastMessage())
$vars['pid'] = $message->getId();
$vars['flags'] = 0; $vars['flags'] = 0;
switch ($vars['reply-to']) { switch ($vars['reply-to']) {
......
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