Index: trunk/extensions/LiquidThreads/lqt.js |
— | — | @@ -224,7 +224,9 @@ |
225 | 225 | // Update the new thread link |
226 | 226 | var newThreadLink = getElementsByClassName( document, 'a', 'lqt_start_discussion' )[0]; |
227 | 227 | |
228 | | - addHandler( newThreadLink, 'click', liquidThreads.handleNewLink ); |
| 228 | + if (newThreadLink) { |
| 229 | + addHandler( newThreadLink, 'click', liquidThreads.handleNewLink ); |
| 230 | + } |
229 | 231 | |
230 | 232 | // Show quote buttons |
231 | 233 | liquidThreads.showQuoteButtons(); |