X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fnickname_functions.php;h=f66ade8e1c0227a7d578b3ef5ac1cbbfa4fa0b92;hb=f2edf32502b2774dc17ef419a2e6a1c60e361c0a;hp=9d501390db43c0b198cf7d23ba583d1b0d53ceab;hpb=0a37fc5afcd828646d4e62e68fea07c3d2c54a87;p=mailer.git diff --git a/inc/libs/nickname_functions.php b/inc/libs/nickname_functions.php index 9d501390db..f66ade8e1c 100644 --- a/inc/libs/nickname_functions.php +++ b/inc/libs/nickname_functions.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -40,10 +40,10 @@ if (!defined('__SECURITY')) { die(); } // END - if -// Checks wether the nickname is active +// Checks whether the nickname is active function isNicknameOrUserid ($useridNick) { // By default nothing is found... - $ret = false; + $ret = FALSE; // Found in cache? if (isset($GLOBALS['nickname_active'][$useridNick])) { @@ -75,10 +75,10 @@ function getNickname ($userid) { $ret = $GLOBALS['nicknames'][$userid]; } else { // Init result - $result = false; + $result = FALSE; // Nickname or userid used? - if ('' . round($userid) . '' === '' . $userid . '') { + if ('' . bigintval($userid, TRUE, FALSE) . '' === '' . $userid . '') { // Userid given, so try to load user data if (fetchUserData($userid)) { // Load nickname from database