Fix up user preferences so it shows the proper wine version.

This commit is contained in:
Tony Lambregts
2005-01-04 20:15:32 +00:00
committed by Jeremy Newman
parent c7beb30195
commit e54a74bd4d
2 changed files with 9 additions and 0 deletions

View File

@@ -66,6 +66,14 @@ class User {
return lookupEmail($userid);
}
function lookup_CVSrelease($userId)
{
$result = mysql_query("SELECT CVSrelease FROM user_list WHERE userId = '$userId'");
if(!$result || mysql_num_rows($result) != 1)
return null;
$ob = mysql_fetch_object($result);
return $ob->CVSrelease;
}
/**
* restore a user from the database

View File

@@ -54,6 +54,7 @@ function show_user_fields()
$ext_username = $_SESSION['current']->username;
$ext_realname = $user->lookup_realname($_SESSION['current']->userid);
$ext_email = $user->lookup_email($_SESSION['current']->userid);
$CVSrelease = $user->lookup_CVSrelease($_SESSION['current']->userid);
include(BASE."include/"."form_edit.php");