diff --git a/src/Quotelinks/QuoteThreading.coffee b/src/Quotelinks/QuoteThreading.coffee index 7b77a13a3..2ac2d695f 100755 --- a/src/Quotelinks/QuoteThreading.coffee +++ b/src/Quotelinks/QuoteThreading.coffee @@ -97,7 +97,7 @@ QuoteThreading = if post = posts[post.ID] posts.after post, posts[@ID] - else + else if posts[@ID] posts.prepend posts[@ID] return true @@ -128,4 +128,4 @@ QuoteThreading = kb: -> control = $.id 'threadingControl' control.checked = not control.checked - QuoteThreading.toggle.call control \ No newline at end of file + QuoteThreading.toggle.call control