From 52a50f10f171c5eeb3e6ba4427ab5d0584cb6e26 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sat, 18 Oct 2008 09:46:35 +0000 Subject: minor cleanup of docs and code --- BitUser.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/BitUser.php b/BitUser.php index 0ffc69d..5424141 100644 --- a/BitUser.php +++ b/BitUser.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.200 $ + * @version $Revision: 1.201 $ * @package users * @subpackage BitUser */ @@ -80,6 +80,8 @@ class BitUser extends LibertyMime { /** * load - loads all settings & preferences for this user * + * @param boolean $pFull Load additional user data like + * @param string $pUserName User login name * @access public * @author Chrstian Fowler * @return returnString @@ -147,12 +149,12 @@ class BitUser extends LibertyMime { $this->setPreference( 'users_country', str_replace( '_', ' ', $this->getPreference( 'users_country' ) ) ); } if( $pFull ) { - $this->mInfo['real_name'] = trim($this->mInfo['real_name']); + $this->mInfo['real_name'] = trim( $this->mInfo['real_name'] ); $this->mInfo['display_name'] = ( ( !empty( $this->mInfo['real_name'] ) ? $this->mInfo['real_name'] : ( !empty( $this->mUsername) ? $this->mUsername : - ( !empty( $this->mInfo['email'] ) ? substr($this->mInfo['email'],0, strpos($this->mInfo['email'],'@')) : - $this->mUserId))) + ( !empty( $this->mInfo['email'] ) ? substr( $this->mInfo['email'], 0, strpos( $this->mInfo['email'],'@' )) : + $this->mUserId ))) ); //print("displayName: ".$this->mInfo['display_name']); $this->defaults(); -- cgit v1.3