aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-06 19:49:59 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-06 19:49:59 +0000
commitaf7149183fb60bdaf73c679d40c4febb2415c0d7 (patch)
treef3767e9f5dbb532e3ca3be43ec21a585efc7c94b /views/default/navigation
parente55f92c156cc171dbd8177f58c7f7883a1332806 (diff)
downloadelgg-af7149183fb60bdaf73c679d40c4febb2415c0d7.tar.gz
elgg-af7149183fb60bdaf73c679d40c4febb2415c0d7.tar.bz2
Closes #587: The area of code in question hasn't been coded as defencively as it could have been.
git-svn-id: https://code.elgg.org/elgg/trunk@2534 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation')
-rw-r--r--views/default/navigation/pagination.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php
index 54fa3bdec..49275f053 100644
--- a/views/default/navigation/pagination.php
+++ b/views/default/navigation/pagination.php
@@ -17,10 +17,10 @@
} else {
$offset = $vars['offset'];
}
- if (!isset($vars['limit'])) {
+ if ((!isset($vars['limit'])) || (!$limit)) {
$limit = 10;
} else {
- $limit = $vars['limit'];
+ $limit = (int)$vars['limit'];
}
if (!isset($vars['count'])) {
$count = 0;