]> git.mxchange.org Git - mailer.git/commitdiff
Variable from (blind) code move fixed
authorRoland Häder <roland@mxchange.org>
Mon, 17 Aug 2009 18:04:21 +0000 (18:04 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 17 Aug 2009 18:04:21 +0000 (18:04 +0000)
inc/libs/nickname_functions.php

index c776c5fb50092588a4790f3368546f66883a7bb4..550d76005f3682e16042d3040592015499f00b28 100644 (file)
@@ -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?