Fix user preferences screen

This commit is contained in:
Tony Lambregts
2005-01-13 05:37:52 +00:00
committed by WineHQ
parent dd3993d6fa
commit 2a153fec68
2 changed files with 16 additions and 1 deletions

View File

@@ -13,6 +13,21 @@ function query_appdb($sQuery,$sComment="")
return $hResult;
}
function query_userdb($sQuery,$sComment="")
{
global $huserdbLink;
if(!$huserdbLink)
{
$huserdbLink = mysql_connect(USERS_DBHOST, USERS_DBUSER, USERS_DBPASS);
mysql_select_db(USERS_DB);
}
$hResult = mysql_query($sQuery, $huserdbLink);
if(!$hResult) query_error($sQuery, $sComment);
return $hResult;
}
function query_bugzilladb($sQuery,$sComment="")
{

View File

@@ -17,7 +17,7 @@ if(!loggedin())
function build_prefs_list()
{
$result = query_appdb("SELECT * FROM prefs_list ORDER BY id");
$result = query_userdb("SELECT * FROM prefs_list ORDER BY id");
while($r = mysql_fetch_object($result))
{
//skip admin options