Commit f8a03536 authored by deuce's avatar deuce
Browse files

Fix bug in last commit.

parent 8a9b51d3
......@@ -57,8 +57,6 @@ for(var page=firstpage;page<=lastpage;page++) {
hdr=msgbase.get_msg_header(true,msgbase.total_msgs-1-offset-max_messages);
if(hdr!=null) {
if(hdr.subject=='')
hdr.subject="-- No Subject --";
template.pagelinks+='<a href="'+path+'?msg_grp='+g+'&msg_sub='+encodeURIComponent(sub)+'&offset='+(offset+max_messages)+'">NEXT</a>';
}
......@@ -92,6 +90,8 @@ template.group=msg_area.grp_list[g];
for(;displayed<max_messages && (hdr=msgbase.get_msg_header(true,last_offset)) != null;last_offset--) {
if(hdr==null)
continue;
if(hdr.subject=='')
hdr.subject="-- No Subject --";
if(sub=='mail' && hdr.to!=user.alias && hdr.to!=user.name && hdr.to !=user.netmail)
continue;
template.messages[displayed.toString()]=hdr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment