diff --git a/exec/text_sec.js b/exec/text_sec.js index 11376cce73689c880334c16ce4b92d8d8e2f08da..03643a8785f74ed87b908b71e9f9c13d026003c0 100644 --- a/exec/text_sec.js +++ b/exec/text_sec.js @@ -132,14 +132,14 @@ while(bbs.online) { if(!path || console.aborted) break; if(!file_exists(path)) { - var path_textarea = backslash(txtsec_data(usrsec[cursec])) + path; - if (!file_exists(path_textarea)) { + var default_path = backslash(txtsec_data(usrsec[cursec])) + path; + if (!file_exists(default_path)) { console.print(bbs.text(FileNotFound)); break; } else { // only change the path if the file was found, otherwise // leave it alone so they can correct it - path = path_textarea; + path = default_path; } } console.printfile(path);