|
@@ -276,6 +276,9 @@ class User extends Model {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function getDisplayName() {
|
|
public function getDisplayName() {
|
|
|
|
|
+
|
|
|
|
|
+ if(empty($this->email)) return "Deleted User";
|
|
|
|
|
+
|
|
|
$parts = array_filter([$this->first_name, $this->last_name]);
|
|
$parts = array_filter([$this->first_name, $this->last_name]);
|
|
|
return implode(" ", $parts);
|
|
return implode(" ", $parts);
|
|
|
}
|
|
}
|