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()
|
function objectMakeUrl()
|
||||||
{
|
{
|
||||||
|
if(!$this->iUserId)
|
||||||
|
return;
|
||||||
|
|
||||||
$sUrl = BASE."contact.php?iRecipientId=$this->iUserId";
|
$sUrl = BASE."contact.php?iRecipientId=$this->iUserId";
|
||||||
return $sUrl;
|
return $sUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
function objectMakeLink()
|
function objectMakeLink()
|
||||||
{
|
{
|
||||||
|
if(!$this->iUserId)
|
||||||
|
return $this->sRealname;
|
||||||
|
|
||||||
$sLink = "<a href=\"".$this->objectMakeUrl()."\">$this->sRealname</a>";
|
$sLink = "<a href=\"".$this->objectMakeUrl()."\">$this->sRealname</a>";
|
||||||
return $sLink;
|
return $sLink;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user