From ff46a4485debc97c07383733f52901bbf41d0c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 31 May 2007 14:55:36 +0000 Subject: [PATCH] user: don't make links when userId is not set --- include/user.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/user.php b/include/user.php index 6562c98..944b772 100644 --- a/include/user.php +++ b/include/user.php @@ -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 = "objectMakeUrl()."\">$this->sRealname"; return $sLink; }