Commit 513af8cf authored by deuce's avatar deuce
Browse files

Don't subtract one from total_pages (Why was this here?)

parent 0aa236a5
......@@ -16,12 +16,11 @@ if(offset > 0) {
}
}
var currpage=Math.floor(offset/max_messages);
var total_pages=Math.floor(msgbase.total_msgs/max_messages)-1;
var total_pages=Math.floor(msgbase.total_msgs/max_messages);
var firstpage=0;
var lastpage=firstpage+max_pages-1;
if(lastpage>total_pages)
lastpage=total_pages;
/* Ensure currpage is inside first/last */
var lcount=0;
while(currpage>lastpage) {
......
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