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