Fixed error message when 'Show text = 0'

SVN revision: 2188
This commit is contained in:
2009-04-09 11:04:14 +00:00
parent 73576f2a20
commit 6f2880297c
+3 -1
View File
@@ -9821,7 +9821,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
if (enc_selected == 0)
rsprintf("<script type=\"text/javascript\" src=\"../elcode.js\"></script>\n\n");
if (enc_selected == 2 && fckedit_exist) {
show_text = !getcfg(lbs->name, "Show text", str, sizeof(str)) || atoi(str) == 1;
if (enc_selected == 2 && fckedit_exist && show_text) {
rsprintf("<script type=\"text/javascript\" src=\"../fckeditor/fckeditor.js\"></script>\n");
rsprintf("<script type=\"text/javascript\">\n");
/* define strings for current language */