diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-13 03:36:06 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-13 03:36:06 +0000 |
commit | 1344bd7009d5a9141b664f3125c8ebb8e1a3a1f9 (patch) | |
tree | 7c2f0e565fa7130d67157b19681b7491cb121e10 | |
parent | ee4f9eaa0082eb8d93812a2effdf03143d1ce4e4 (diff) |
Use the name field if the full_name field is empty.
-rw-r--r-- | modules/user/views/login.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/views/login.html.php b/modules/user/views/login.html.php index d7eaacda..d9a558b5 100644 --- a/modules/user/views/login.html.php +++ b/modules/user/views/login.html.php @@ -11,7 +11,7 @@ '<a href="' . url::site("form/edit/users/{$user->id}") . '" title="' . t("Edit Your Profile") . '" id="gUserProfileLink" class="gDialogLink">' . - $user->full_name . '</a>')) ?></li> + (empty($user->full_name) ? $user->name : $user->full_name) . '</a>')) ?></li> <li><a href="<?= url::site("logout?continue=" . url::current(true)) ?>" id="gLogoutLink"><?= t("Logout") ?></a></li> <? endif; ?> |