diff options
author | vdigital <vdigital@piwigo.org> | 2009-07-04 20:45:14 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2009-07-04 20:45:14 +0000 |
commit | b102907b51e838c4b51f0bb0acbe1ba5fb4dbb08 (patch) | |
tree | 5f9c3dacdda6b9a1e9a981273d1493856df67e57 | |
parent | fcf338369e6dd84af1814691a5ef9bf4a8985b8c (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.php | 4 |
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(); |