$dmy = '';
$add = '';
$errorCode = '0';
+ $ext = '';
// Add last_login if available
$lastOnline = '';
} elseif (isNicknameUsed($userid)) {
// No nickname installed
$errorCode = getCode('EXTENSION_PROBLEM');
+ $ext = 'nickname';
} else {
// Direct userid entered
fetchUserData($userid);
// id not found!
$errorCode = getCode('WRONG_ID');
}
- } else {
+ } elseif ($errorCode == '0') {
// id not found!
$errorCode = getCode('WRONG_ID');
}
if ($errorCode > 0) {
// Then reconstruct the URL
$URL = $errorUrl . $errorCode;
+
+ // Extension set? Then add it as well.
+ if (!empty($ext)) $URL .= '&ext=' . $ext;
} // END - if
// Return URL