This patch make email address the user's username as requested in the TODO.

query_users.php is modified even if we will drop it in the future to be sure it works everywhere.
This commit is contained in:
Jonathan Ernst
2005-01-10 22:54:04 +00:00
committed by WineHQ
parent 6b039f82ce
commit d9826427da
25 changed files with 85 additions and 136 deletions

View File

@@ -8,17 +8,10 @@ function forum_lookup_user ($userid)
$mailto = '';
if ($userid > 0)
{
$qstring = "SELECT email,username FROM user_list WHERE userid = '".$userid."' LIMIT 1";
$qstring = "SELECT email FROM user_list WHERE userid = '".$userid."' LIMIT 1";
$result = mysql_query($qstring);
$usr = mysql_fetch_object($result);
if ($usr->email)
{
$mailto = '<a href="mailto:' . $usr->email . '">' . $usr->username . '</a>';
}
else
{
$mailto = $usr->username;
}
$mailto = '<a href="mailto:' . $usr->email . '">' . $usr->realname . '</a>';
unset($qstring, $result, $usr);
}
else