diff options
author | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2005-05-25 18:16:58 +0200 |
---|---|---|
committer | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2005-05-25 18:16:58 +0200 |
commit | 5749f1ce740e4cfd6d886e8d2fda6b8782389d33 (patch) | |
tree | 49ab4432a0cf2028392913f8edef580ac8a947ac /inc/template.php | |
parent | 3bc80094f97f3145ebaf4a39d6d21657371a46e3 (diff) | |
download | rpg-5749f1ce740e4cfd6d886e8d2fda6b8782389d33.tar.gz rpg-5749f1ce740e4cfd6d886e8d2fda6b8782389d33.tar.bz2 |
fix for history navigation buttons
This patch adds some sanity checks for the history start parameter
'first'. Only the needed history entries will be loaded at once
now. This will reduce server load a bit
darcs-hash:20050525161658-7ef76-1ab681b4c784bbe834fae91301ee7b9cd2a2cd8b.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 3 |
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': |