summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-07-06 15:17:19 +0000
committerTed Trask <ttrask01@yahoo.com>2010-07-06 15:17:19 +0000
commitee2f6b7e474b4a56113ddac19ca8bb7fd5ca5b49 (patch)
tree882b321e56e42f073087ca8eae4d644d7cd14ebf /lib
parent84c0aaf6833c678ab8592734ad98cc2c1cff7135 (diff)
downloadacf-core-ee2f6b7e474b4a56113ddac19ca8bb7fd5ca5b49.tar.bz2
acf-core-ee2f6b7e474b4a56113ddac19ca8bb7fd5ca5b49.tar.xz
Fixed typo in pagination code.
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