user: don't make links when userId is not set

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-05-31 14:55:36 +00:00
committed by WineHQ
parent a2f25be661
commit ff46a4485d

View File

@@ -794,12 +794,18 @@ class User {
function objectMakeUrl()
{
if(!$this->iUserId)
return;
$sUrl = BASE."contact.php?iRecipientId=$this->iUserId";
return $sUrl;
}
function objectMakeLink()
{
if(!$this->iUserId)
return $this->sRealname;
$sLink = "<a href=\"".$this->objectMakeUrl()."\">$this->sRealname</a>";
return $sLink;
}