From 94b6106cc3fe745be3e56deada74e1c636accae0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 24 Oct 2011 15:37:06 +0200 Subject: [PATCH] Fixes names retrieval for accounts without profiles. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- classes/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/user.php b/classes/user.php index 3aea2fc..bc9adc5 100644 --- a/classes/user.php +++ b/classes/user.php @@ -306,7 +306,7 @@ class User extends PlUser public function firstName() { if (!$this->hasProfile()) { - return $this->displayName(); + return $this->firstname; } return $this->profile()->firstName(); } @@ -314,7 +314,7 @@ class User extends PlUser public function lastName() { if (!$this->hasProfile()) { - return ''; + return $this->lastname; } return $this->profile()->lastName(); } -- 2.1.4