summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index a5e656443..ea8b99b6c 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -75,8 +75,7 @@ function tpl_content(){
html_diff();
break;
case 'recent':
- $first = $_REQUEST['first'];
- if(empty($first)) $first=0;
+ $first = is_numeric($_REQUEST['first']) ? intval($_REQUEST['first']) : 0;
html_recent($first);
break;
case 'index':