}
// Wrapper for fetchUserData() and getUserData() calls
-function getFetchedUserData ($keyColumn, $userId, $valueColumn) {
+function getFetchedUserData ($keyColumn, $userid, $valueColumn) {
// Is it cached?
if (!isset($GLOBALS['user_data_cache'][$userid][$keyColumn][$valueColumn])) {
// Default is 'guest'
$data = getMessage('USERNAME_GUEST');
// Can we fetch the user data?
- if (($userId > 0) && (fetchUserData($userId, $keyColumn))) {
+ if (($userid > 0) && (fetchUserData($userid, $keyColumn))) {
// Now get the data back
$data = getUserData($valueColumn);
} // END - if