]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/nickname_functions.php
Fixes for #226, renamed function:
[mailer.git] / inc / libs / nickname_functions.php
index 9c4a7933c8095afb41e023e454e302653c47ea61..1e8084013b5bda6e6476dfc21549da236ffea576 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * 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 *
  * it under the terms of the GNU General Public License as published by *
@@ -40,7 +40,7 @@ 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;
@@ -78,7 +78,7 @@ function getNickname ($userid) {
                $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