From 733cdb9b316d1f8f15fae2c95267b8de369f08d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 17 Aug 2009 18:04:21 +0000 Subject: [PATCH] Variable from (blind) code move fixed --- inc/libs/nickname_functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/libs/nickname_functions.php b/inc/libs/nickname_functions.php index c776c5fb50..550d76005f 100644 --- a/inc/libs/nickname_functions.php +++ b/inc/libs/nickname_functions.php @@ -86,14 +86,14 @@ function NICKNAME_GET_NICK ($userid) { $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? -- 2.39.5