diff --git a/votestats.php b/votestats.php index 4d03ea1..343e932 100644 --- a/votestats.php +++ b/votestats.php @@ -1,31 +1,25 @@ 200 || $aClean['iTopNumber'] < 0) + $aClean['iTopNumber'] = 25; +if(empty($aClean['iCategoryId'])) + $aClean['iCategoryId'] = 0; -/* process the post variables to override the default settings */ -if( !empty($aClean['iTopNumber']) AND is_numeric($aClean['iTopNumber'])) - $topNumber = $aClean['iTopNumber']; -if( !empty($aClean['iCategoryId']) AND is_numeric($aClean['iCategoryId'])) - $categoryId = $aClean['iCategoryId']; - -/* Check if the value makes sense */ -if($topNumber > 200 || $topNumber < 1) - $topNumber = 25; - -apidb_header("Vote Stats - Top $topNumber Applications"); +apidb_header("Vote Stats - Top ".$aClean['iTopNumber']." Applications"); /* display the selection for the top number of apps to view */ echo "