summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/viewfunctions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua
index 24828d6..14c0df8 100644
--- a/lib/viewfunctions.lua
+++ b/lib/viewfunctions.lua
@@ -175,7 +175,7 @@ function paginate(data, clientdata, pagesize)
page_data.numpages = math.floor((#data + pagesize -1)/pagesize)
if clientdata and clientdata.page and tonumber(clientdata.page) then
page_data.page = tonumber(clientdata.page)
- elseif clientdata and tonumber(clientdata.page) then
+ elseif clientdata and tonumber(clientdata) then
page_data.page = tonumber(clientdata)
end
if page_data.page > page_data.numpages then