summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/Profile.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index b7bd2a2d9..5a45d4397 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -133,4 +133,8 @@ class Profile extends DB_DataObject
}
return true;
}
+
+ function getBestName() {
+ return ($this->fullname) ? $this->fullname : $this->nickname;
+ }
}