user: don't make links when userId is not set
This commit is contained in:
committed by
WineHQ
parent
a2f25be661
commit
ff46a4485d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user