ChangeSet ID: 31152 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/05/31 09:55:36 Modified files: include : user.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> user: don't make links when userId is not set Patch: http://cvs.winehq.org/patch.py?id=31152 Old revision New revision Changes Path 1.93 1.94 +6 -0 appdb/include/user.php Index: appdb/include/user.php diff -u -p appdb/include/user.php:1.93 appdb/include/user.php:1.94 --- appdb/include/user.php:1.93 31 May 2007 14:55:36 -0000 +++ appdb/include/user.php 31 May 2007 14:55:36 -0000 @@ -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; }
participants (1)
-
WineHQ