diff options
author | vdigital <vdigital@piwigo.org> | 2009-07-04 20:39:58 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2009-07-04 20:39:58 +0000 |
commit | cbc5f2c6499da9f136b4d747850da23b9ce621b8 (patch) | |
tree | d8db9f335f93f0a3c666170ca615626128d05791 | |
parent | 4ebd6b00902e8480d78a080b872b3c404f55eaf2 (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
-rw-r--r-- | comments.php | 4 |
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(); |