- fix notifications

- improves notifications
This commit is contained in:
Jonathan Ernst
2005-02-02 00:14:01 +00:00
committed by WineHQ
parent 0519a85604
commit 7ce5895681
7 changed files with 38 additions and 54 deletions

View File

@@ -5,13 +5,10 @@
function forum_lookup_user($iUserId)
{
$mailto = '';
if ($iUserId > 0)
{
$sQuery = "SELECT email,realname FROM user_list WHERE userId = '".$iUserId."' LIMIT 1";
$hResult = query_appdb($sQuery);
$oUsr = mysql_fetch_object($hResult);
$sMailto = '<a href="mailto:' . $oUsr->email . '">' . $oUsr->realname . '</a>';
$oUser = new User($iUserId);
$sMailto = '<a href="mailto:' . $oUser->sEmail . '">' . $oUser->sRealname . '</a>';
}
else
{