X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fuser.php;h=bc9adc5e41b778ab8344a72759008628faef61f4;hb=9860732a5b6de1cdf71e1f55a1f5773ce95fa67b;hp=3aea2fc858dcbbcc929d4e5219ab22343e72ed1c;hpb=5289c142e04219cb8e846c86ccd9f5005d7d49e1;p=platal.git 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(); }