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

@@ -8,9 +8,9 @@ function log_category_visit($catId)
$REMOTE_ADDR, $catId);
if($result && mysql_num_rows($result) == 1)
{
$stats = mysql_fetch_object($result);
$oStatsRow = mysql_fetch_object($result);
query_parameters("UPDATE catHitStats SET count = count + 1 WHERE catHitId = '?'",
$stats->catHitId);
$oStatsRow->catHitId);
} else
{
query_parameters("INSERT INTO catHitStats (appHitId, time, ip, catId, count) ".

View File

@@ -573,9 +573,9 @@ class Application {
if($result && mysql_num_rows($result) > 0)
{
echo " <tr class=\"color1\"><td> <b>Links</b></td><td>\n";
while($ob = mysql_fetch_object($result))
while($oRow = mysql_fetch_object($result))
{
echo " <a href='$ob->url'>".substr(stripslashes($ob->description),0,30)."</a> <br />\n";
echo " <a href='$oRow->url'>".substr(stripslashes($oRow->description),0,30)."</a> <br />\n";
}
echo " </td></tr>\n";
}

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 */

View File

@@ -68,8 +68,8 @@ class session
{
$result = query_parameters("SELECT data FROM session_list WHERE session_id = '?'", $key);
if (!$result) { return null; }
$r = mysql_fetch_object($result);
return $r->data;
$oRow = mysql_fetch_object($result);
return $oRow->data;
}
// write session to DB

View File

@@ -681,8 +681,8 @@ function getNumberOfQueuedTests()
$hResult = query_parameters($sQuery);
if($hResult)
{
$row = mysql_fetch_object($hResult);
return $row->num_tests;
$oRow = mysql_fetch_object($hResult);
return $oRow->num_tests;
}
return 0;
}

View File

@@ -195,8 +195,8 @@ class User {
$this->iUserId, $sKey);
if(!$hResult || mysql_num_rows($hResult) == 0)
return $sDef;
$ob = mysql_fetch_object($hResult);
return $ob->value;
$oRow = mysql_fetch_object($hResult);
return $oRow->value;
}
@@ -290,8 +290,8 @@ class User {
$hResult = query_parameters($sQuery, $this->iUserId, $bSuperMaintainer);
if(!$hResult)
return 0;
$ob = mysql_fetch_object($hResult);
return $ob->cnt;
$oRow = mysql_fetch_object($hResult);
return $oRow->cnt;
}
@@ -676,18 +676,18 @@ class User {
{
$hResult = query_parameters("SELECT count(userId) as c FROM appComments WHERE userId = '?'",
$this->iUserId);
$ob = mysql_fetch_object($hResult);
if($ob->c != 0) return true;
$oRow = mysql_fetch_object($hResult);
if($oRow->c != 0) return true;
$hResult = query_parameters("SELECT count(userId) as c FROM appMaintainers WHERE userId = '?'",
$this->iUserId);
$ob = mysql_fetch_object($hResult);
if($ob->c != 0) return true;
$oRow = mysql_fetch_object($hResult);
if($oRow->c != 0) return true;
$hResult = query_parameters("SELECT count(userId) as c FROM appVotes WHERE userId = '?'",
$this->iUserId);
$ob = mysql_fetch_object($hResult);
if($ob->c != 0) return true;
$oRow = mysql_fetch_object($hResult);
if($oRow->c != 0) return true;
return false;
}

View File

@@ -667,9 +667,9 @@ class Version {
if($result && mysql_num_rows($result) > 0)
{
echo " <tr class=\"color1\"><td><b>Links</b></td><td>\n";
while($ob = mysql_fetch_object($result))
while($oRow = mysql_fetch_object($result))
{
echo " <a href=\"$ob->url\">".substr(stripslashes($ob->description),0,30)."</a> <br />\n";
echo " <a href=\"$oRow->url\">".substr(stripslashes($oRow->description),0,30)."</a> <br />\n";
}
echo " </td></tr>\n";
}