$result = false;
// Nickname or userid used?
- if (''.round($uidNick).'' === ''.$uidNick.'') {
+ if (''.round($userid).'' === ''.$userid.'') {
// Userid given
$result = SQL_QUERY_ESC("SELECT `userid` FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `userid` =%s LIMIT 1",
- array(bigintval($uidNick)), __FUNCTION__, __LINE__);
+ array(bigintval($userid)), __FUNCTION__, __LINE__);
} else {
// Nickname given
$result = SQL_QUERY_ESC("SELECT `userid` FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `nickname`='%s' LIMIT 1",
- array($uidNick), __FUNCTION__, __LINE__);
+ array($userid), __FUNCTION__, __LINE__);
}
// Found?