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:
@@ -2,7 +2,7 @@
|
||||
|
||||
/*
|
||||
* session.php - session handler functions
|
||||
* sessions are stored in a mysql table
|
||||
* sessions are stored in a database table
|
||||
*/
|
||||
|
||||
/* the number of days a session cookie is flaged to last */
|
||||
@@ -72,7 +72,7 @@ class session
|
||||
{
|
||||
$result = query_parameters("SELECT data FROM session_list WHERE session_id = '?'", $key);
|
||||
if (!$result) { return null; }
|
||||
$oRow = mysql_fetch_object($result);
|
||||
$oRow = query_fetch_object($result);
|
||||
if($oRow)
|
||||
return $oRow->data;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user