From 113bf3124dccc4a660b7d96667ca4358e62eb04e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 22 Dec 2005 05:48:50 +0000 Subject: [PATCH] r657: Removed a call to fetch_user_display_name() but added some guest-handling code --- includes/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 8f62a2c..018e121 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -34,7 +34,11 @@ function construct_option_select($name, $array, $selected = 0, $valuekey = '', $ function construct_user_display($userinfo, $html = true) { global $bugsys; - fetch_user_display_name($userinfo); + + if (!$userinfo['userid']) + { + $userinfo['username'] = $bugsys->lang->string('Guest'); + } if ($html) { -- 2.22.5