X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=ca8ef7430bea5c8278e7db68de63e6ad31a72ff2;hp=c9f97c7b212f8f057c1dc78425d2b18761572cb5;hb=70a70cc2bbf8942f89ef092e076289164bae7b4c;hpb=27fed6ed8bbc0d91404947d91db1a07e36c1ea60 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index c9f97c7b21..ca8ef7430b 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -675,7 +675,17 @@ function setUsername ($userName) { // Get username function getUsername () { - return $GLOBALS['username']; + // default is guest + $username = getMessage('USERNAME_GUEST'); + + // User name set? + if (isset($GLOBALS['username'])) { + // Use the set name + $username = $GLOBALS['username']; + } // END - if + + // Return it + return $username; } // Wrapper function for installation phase