From 658123a2328867a87da59ca660a7044d99eea22c Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 16 Aug 2014 17:53:07 -0700 Subject: The fullname is displayed instead of the username if not empty --- app/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers.php') diff --git a/app/helpers.php b/app/helpers.php index ec13c5ab..9a2b4cbf 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -37,7 +37,7 @@ function is_admin() function get_username() { - return $_SESSION['user']['username']; + return $_SESSION['user']['name'] ?: $_SESSION['user']['username']; } function parse($text) -- cgit v1.2.3