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:
@@ -62,7 +62,7 @@ if(!$_SESSION['current']->isLoggedIn())
|
||||
"FROM appVotes ".
|
||||
"GROUP BY versionId ORDER BY count DESC LIMIT 1";
|
||||
$hResult = query_parameters($voteQuery);
|
||||
$oRow = mysql_fetch_object($hResult);
|
||||
$oRow = query_fetch_object($hResult);
|
||||
|
||||
echo "There are <b>$iNumApps</b> applications currently in the database";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user