Index: trunk/extensions/LiquidThreads/lqt.js |
— | — | @@ -294,6 +294,11 @@ |
295 | 295 | threads.push(threadID); |
296 | 296 | } ); |
297 | 297 | |
| 298 | + // Optimisation: if no threads are to be checked, do not check. |
| 299 | + if ( ! threads.length ) { |
| 300 | + return; |
| 301 | + } |
| 302 | + |
298 | 303 | var getData = { 'action' : 'query', 'list' : 'threads', 'thid' : threads.join('|'), |
299 | 304 | 'format' : 'json', 'thprop' : 'id|subject|parent|modified' }; |
300 | 305 | |