aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
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 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();