From: Roland Häder Date: Wed, 13 Jul 2011 11:12:41 +0000 (+0000) Subject: 'guest' may come when e.g. ext-nickname is not installed but a template requested... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=521324230d66f04bebb1196bb6c238d4d5ae161b;p=mailer.git 'guest' may come when e.g. ext-nickname is not installed but a template requested the user's nickname --- diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 87e0a3d01c..4e235f5017 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1064,8 +1064,8 @@ function getFetchedUserData ($keyColumn, $userid, $valueColumn) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'keyColumn=' . $keyColumn . ',userid=' . $userid . ',valueColumn=' . $valueColumn . ' - ENTERED!'); // Is it cached? if (!isset($GLOBALS[__FUNCTION__][$userid][$keyColumn][$valueColumn])) { - // Default is 'guest' - $data = '{--USERNAME_GUEST--}'; + // Default is NULL + $data = NULL; // Can we fetch the user data? if ((isValidUserId($userid)) && (fetchUserData($userid, $keyColumn))) {