);
// Init variable to prevent notices
-$URL = '';
+$url = '';
// Detect what the member wants to do
$mode = 'show'; // Show his data
$content = merge_array($content, getUserDataArray());
// Translate some things
- $content['gender'] = translateGender($content['gender']);
$content['last_update'] = generateDateTime($content['last_update'], 0);
// How far is last change on his profile away from now?
case 'notify': // Switch off notfication
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `notified`='N', `last_update`=UNIX_TIMESTAMP() WHERE `userid`=%s LIMIT 1",
array(getMemberId()), __FILE__, __LINE__);
- $URL = 'modules.php?module=login&what=welcome&code=' . urlencode(getMessage('PROFILE_UPDATED'));
+ $url = 'modules.php?module=login&what=welcome&code=' . urlencode(getMessage('PROFILE_UPDATED'));
break;
} // END - switch
-if (!empty($URL)) {
+if (!empty($url)) {
// Load generated URL
- redirectToUrl($URL);
+ redirectToUrl($url);
} // END - if
// [EOF]