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:
@@ -15,7 +15,7 @@ $hResult = maintainer::objectGetEntries(false, false);
|
||||
echo "Maintainers with a non-zero notification level<br />\n";
|
||||
|
||||
$bFoundNonZero = false;
|
||||
while($oRow = mysql_fetch_object($hResult))
|
||||
while($oRow = query_fetch_object($hResult))
|
||||
{
|
||||
$oMaintainer = new maintainer(null, $oRow);
|
||||
|
||||
@@ -41,7 +41,7 @@ echo "<br />\n";
|
||||
// retrieve all of the maintainers
|
||||
echo "Maintainers with notification iTargetLevel != 0<br />\n";
|
||||
$hResult = maintainer::objectGetEntries(false, false);
|
||||
while($oRow = mysql_fetch_object($hResult))
|
||||
while($oRow = query_fetch_object($hResult))
|
||||
{
|
||||
$oMaintainer = new maintainer(null, $oRow);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user