Commit 0c6215dc authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added of out bounds checking during pagination. JM-1348

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10899 b35dd754-fafc-0310-a699-88a17e54d16e
parent b1528544
......@@ -82,6 +82,11 @@
// paginator vars
int numPages = (int)Math.ceil((double)sessionCount/(double)range);
int curPage = (start/range) + 1;
// Check that we are not out of bounds
if (curPage > numPages && numPages > 0){
curPage = numPages;
start = (numPages-1)*range;
}
%>
<html>
......
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