Rename some variables to match our current naming scheme

This commit is contained in:
Chris Morgan
2006-06-30 16:33:02 +00:00
committed by WineHQ
parent da53f65cde
commit a72f31e11a
14 changed files with 73 additions and 73 deletions

View File

@@ -161,20 +161,20 @@ class Category {
*/
function getCategoryPath()
{
$path = array();
$aPath = array();
$iCatId = $this->iCatId;
while($iCatId != 0)
{
$result = query_parameters("SELECT catName, catId, catParent FROM appCategory WHERE catId = '?'",
$hResult = query_parameters("SELECT catName, catId, catParent FROM appCategory WHERE catId = '?'",
$iCatId);
if(!$result || mysql_num_rows($result) != 1)
if(!$hResult || mysql_num_rows($hResult) != 1)
break;
$cat = mysql_fetch_object($result);
$path[] = array($cat->catId, $cat->catName);
$iCatId = $cat->catParent;
$oCatRow = mysql_fetch_object($hResult);
$aPath[] = array($oCatRow->catId, $oCatRow->catName);
$iCatId = $oCatRow->catParent;
}
$path[] = array(0, "ROOT");
return array_reverse($path);
$aPath[] = array(0, "ROOT");
return array_reverse($aPath);
}
/* return the total number of applications in this category */