Replace direct mysql_xxx() calls with query_xxx() calls. Replace calls to mysql_insert_id()
with calls specific to the appdb or bugzilla database. Fixes a bug where a call to mysql_insert_id() can potentially retrieve an id from either the bugzilla or appdb database, depending on whichever database was last opened by mysql_connect().
This commit is contained in:
@@ -56,7 +56,7 @@ if(!empty($aClean['iCategoryId']))
|
||||
|
||||
if($hResult)
|
||||
{
|
||||
$oRow = mysql_fetch_object($hResult);
|
||||
$oRow = query_fetch_object($hResult);
|
||||
$catParent = $oRow->catParent;
|
||||
|
||||
array_push($cat_array, "$currentCatId");
|
||||
@@ -174,7 +174,7 @@ if($hResult)
|
||||
$oTable->AddRow($oTableRow);
|
||||
|
||||
$c = 1;
|
||||
while($oRow = mysql_fetch_object($hResult))
|
||||
while($oRow = query_fetch_object($hResult))
|
||||
{
|
||||
$sColor = ($c % 2) ? "color0" : "color1";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user