Skip to content
Snippets Groups Projects
Commit 67f8cbe4 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'fix_typeError_in_wevb4' into 'master'

Fix for typeError

See merge request !535
parents 79b6a78b c418606d
Branches
No related tags found
1 merge request!535Fix for typeError
...@@ -390,6 +390,10 @@ if (typeof http_request.query.sub !== 'undefined' && ...@@ -390,6 +390,10 @@ if (typeof http_request.query.sub !== 'undefined' &&
).thread[ ).thread[
http_request.query.thread[0] http_request.query.thread[0]
]; ];
if(!thread) {
writeln("Error: No such message.");
exit(0);
}
var keys = Object.keys(thread.messages); var keys = Object.keys(thread.messages);
thread.__first = keys[0]; thread.__first = keys[0];
thread.__last = keys[keys.length - 1]; 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