From fcd26b22b2912ea700a2585391cb753e6acfe565 Mon Sep 17 00:00:00 2001
From: ree <>
Date: Sat, 16 Jul 2011 16:56:01 +0000
Subject: [PATCH] Fix for when module section is missing from ctrl/modopts.ini.

---
 web/root/members/externals.ssjs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/root/members/externals.ssjs b/web/root/members/externals.ssjs
index 8f1be80740..52127400ed 100644
--- a/web/root/members/externals.ssjs
+++ b/web/root/members/externals.ssjs
@@ -9,7 +9,7 @@ template.title = system.name + " - External Program Section";
 template.html = "";
 
 var options = load("modopts.js", "logon");
-if (!options.rlogin_auto_xtrn) {
+if (!options || !options.rlogin_auto_xtrn) {
 	templatefile = "ftelnet_disabled.inc";
 	if (user.security.level >= 90) {
 		template.SysOpMessage = "Actually, it looks like you're the SysOp, so here's what you can do to enable it:<br /><ul><li>Enable the rlogin_auto_xtrn feature of the logon module<ul><li>To do this, ensure that the <b>rlogin_auto_xtrn=</b> line in the <b>[logon]</b> section of <b>sbbs/ctrl/modopts.ini</b> is set to <b>true</b></li></ul>";
-- 
GitLab