]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Fixes for bugs when ext-imprint is registered. Resolves #153
[mailer.git] / inc / wrapper-functions.php
index c9f97c7b212f8f057c1dc78425d2b18761572cb5..ca8ef7430bea5c8278e7db68de63e6ad31a72ff2 100644 (file)
@@ -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