aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2009-07-04 20:45:14 +0000
committervdigital <vdigital@piwigo.org>2009-07-04 20:45:14 +0000
commitb102907b51e838c4b51f0bb0acbe1ba5fb4dbb08 (patch)
tree5f9c3dacdda6b9a1e9a981273d1493856df67e57
parentfcf338369e6dd84af1814691a5ef9bf4a8985b8c (diff)
merge r3519 from branch 2.0 to trunk
Minor: prevent for non numeric values (except all) git-svn-id: http://piwigo.org/svn/trunk@3520 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--comments.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/comments.php b/comments.php
index d3456c252..3570a6e53 100644
--- a/comments.php
+++ b/comments.php
@@ -87,6 +87,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();