Fix up user preferences so it shows the proper wine version.
This commit is contained in:
committed by
Jeremy Newman
parent
c7beb30195
commit
e54a74bd4d
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user