* fix "all" messages view in bbs view
authorWilfried Göesgens <willi@citadel.org>
Mon, 2 Feb 2009 22:59:11 +0000 (22:59 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 2 Feb 2009 22:59:11 +0000 (22:59 +0000)
webcit/messages.c

index b40cd542bf4dcdf78510de35db74edbe86487b98..171b73e0237f6481cf3442932f682954768cc0ff 100644 (file)
@@ -568,7 +568,12 @@ long DrawMessageDropdown(StrBuf *Selector, long maxmsgs, long startmsg, int nMes
        }
        vector[6] = 0;
        FlushStrBuf(TmpBuf);
-       vector[1] = lbstr("maxmsgs") == 9999999;
+       if (maxmsgs == 9999999) {
+               vector[1] = 1;
+               ret = maxmsgs;
+       }
+       else
+               vector[1] = 0;          
        vector[2] = 0;
        dbg_print_longvector(vector);
        DoTemplate(HKEY("select_messageindex_all"), TmpBuf, &SubTP);