Skip to content
Snippets Groups Projects
Commit b0154b8e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
load("../web/lib/msgslib.ssjs"); load("../web/lib/msgslib.ssjs");
load("../web/lib/mime_decode.ssjs"); load("../web/lib/mime_decode.ssjs");
if(!msgbase)
error("msgbase not defined");
if(msgbase.open!=undefined && msgbase.open()==false) { if(msgbase.open!=undefined && msgbase.open()==false) {
error(msgbase.last_error); error(msgbase.last_error);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment