From d04211ed60f9155b1ab962a9af9b58efaf908d67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 17 Aug 2009 17:49:27 +0000 Subject: [PATCH] Next try to fix nickname login :( --- inc/libs/nickname_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/libs/nickname_functions.php b/inc/libs/nickname_functions.php index 5de88e52cc..f985f52086 100644 --- a/inc/libs/nickname_functions.php +++ b/inc/libs/nickname_functions.php @@ -59,7 +59,7 @@ function NICKNAME_IS_ACTIVE ($uidNick) { $result = false; // Nickname or userid used? - if (($uidNick + 0) == $uidNick) { + if (round($uidNick) == $uidNick) { // Userid given $result = SQL_QUERY_ESC("SELECT `userid` FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `userid` =%s LIMIT 1", array(bigintval($uidNick)), __FUNCTION__, __LINE__); -- 2.39.5