Commit b0154b8e authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Elimniate sysop/logged error when just msgs.ssjs is requested

msgs.ssjs line 6: TypeError: msgbase is undefined

Instead, just display an error to the user/browser (assuming there is one).
parent 174c5e7d
......@@ -3,6 +3,8 @@
load("../web/lib/msgslib.ssjs");
load("../web/lib/mime_decode.ssjs");
if(!msgbase)
error("msgbase not defined");
if(msgbase.open!=undefined && msgbase.open()==false) {
error(msgbase.last_error);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment