From af7149183fb60bdaf73c679d40c4febb2415c0d7 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 6 Jan 2009 19:49:59 +0000 Subject: 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 --- views/default/navigation/pagination.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/default/navigation/pagination.php') 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; -- cgit v1.2.3