summaryrefslogtreecommitdiff
path: root/list_content.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-12-26 12:25:03 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-12-26 12:25:03 +0000
commit9db40004fc10453244cd94e8bce91fbd4d317eaa (patch)
treea9b59d0d7221c6a5e0128452eb94f4ed652bf636 /list_content.php
parent8aa72c09216fff4609f4fc222404aa0620b5f1c1 (diff)
downloadliberty-9db40004fc10453244cd94e8bce91fbd4d317eaa.tar.gz
liberty-9db40004fc10453244cd94e8bce91fbd4d317eaa.tar.bz2
liberty-9db40004fc10453244cd94e8bce91fbd4d317eaa.zip
merge recent changes into HEAD
Diffstat (limited to 'list_content.php')
-rw-r--r--list_content.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/list_content.php b/list_content.php
index 6992bd8..da9868b 100644
--- a/list_content.php
+++ b/list_content.php
@@ -3,7 +3,7 @@
* list_content
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
* @package liberty
* @subpackage functions
*/
@@ -20,9 +20,9 @@ if( !empty( $_REQUEST['sort_mode'] ) ) {
}
$max_content = $gBitSystem->mPrefs['maxRecords'];
-$offset_content = !empty( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0;
-$gBitSmarty->assign( 'user_id', !empty( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : NULL );
-$gBitSmarty->assign( 'curPage', $page = !empty( $_REQUEST['page'] ) ? $_REQUEST['page'] : 1 );
+$offset_content = @BitBase::verifyId( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0;
+$gBitSmarty->assign( 'user_id', @BitBase::verifyId( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : NULL );
+$gBitSmarty->assign( 'curPage', $page = @BitBase::verifyId( $_REQUEST['page'] ) ? $_REQUEST['page'] : 1 );
$offset_content = ( $page - 1 ) * $gBitSystem->mPrefs['maxRecords'];
// now that we have all the offsets, we can get the content list