Skip to content
Snippets Groups Projects
Commit c418606d authored by Nigel Reed's avatar Nigel Reed Committed by Rob Swindell
Browse files

Fix for typeError

parent a53728f5
Branches
No related tags found
1 merge request!535Fix for typeError
......@@ -390,6 +390,10 @@ if (typeof http_request.query.sub !== 'undefined' &&
).thread[
http_request.query.thread[0]
];
if(!thread) {
writeln("Error: No such message.");
exit(0);
}
var keys = Object.keys(thread.messages);
thread.__first = keys[0];
thread.__last = keys[keys.length - 1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment