Absolute numbers where we will never allow negatives, fixes #4692 for 2.2.x, thanks g30rg3x

git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-08-02 14:58:15 +00:00
parent 33b295b2b3
commit c8ceeac23f
2 changed files with 2 additions and 2 deletions

View File

@ -901,7 +901,7 @@ function user_row( $user_object, $style = '' ) {
function _wp_get_comment_list( $s = false, $start, $num ) {
global $wpdb;
$start = (int) $start;
$start = abs( (int) $start );
$num = (int) $num;
if ( $s ) {

View File

@ -76,7 +76,7 @@ if ( !empty( $_POST['delete_comments'] ) ) :
endif;
if ( isset( $_GET['apage'] ) )
$page = (int) $_GET['apage'];
$page = abs( (int) $_GET['apage'] );
else
$page = 1;