aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2009-07-04 20:39:58 +0000
committervdigital <vdigital@piwigo.org>2009-07-04 20:39:58 +0000
commitcbc5f2c6499da9f136b4d747850da23b9ce621b8 (patch)
treed8db9f335f93f0a3c666170ca615626128d05791 /comments.php
parent4ebd6b00902e8480d78a080b872b3c404f55eaf2 (diff)
Minor: prevent for non numeric values (except all)
git-svn-id: http://piwigo.org/svn/branches/2.0@3519 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'comments.php')
-rw-r--r--comments.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/comments.php b/comments.php
index e886a6e11..a71838713 100644
--- a/comments.php
+++ b/comments.php
@@ -86,6 +86,10 @@ if (isset($_GET['items_number']))
{
$page['items_number'] = $_GET['items_number'];
}
+if ( !is_numeric($page['items_number']) and $page['items_number']!='all' )
+{
+ $page['items_number'] = 10;
+}
$page['where_clauses'] = array();