Eliminate some php notices caused by use of uninitialized variables

This commit is contained in:
Edwin Smulders
2007-07-24 01:45:19 +00:00
committed by WineHQ
parent f961187287
commit 023ece493b
26 changed files with 150 additions and 110 deletions

View File

@@ -12,13 +12,8 @@ apidb_header("Comments");
/* display a range of 10 pages */
$pageRange = 10;
$ItemsPerPage = 10;
$currentPage = 1;
if($aClean['iItemsPerPage'])
$ItemsPerPage = $aClean['iItemsPerPage'];
if($aClean['iPage'])
$currentPage = $aClean['iPage'];
$ItemsPerPage = isset($aClean['iItemsPerPage']) ? $aClean['iItemsPerPage'] : 10;
$currentPage = isset($aClean['iPage']) ? $aClean['iPage'] : 1;
$totalPages = ceil(getNumberOfComments()/$ItemsPerPage);