mailer project continued:
[mailer.git] / inc / libs / nickname_functions.php
index 9d501390db43c0b198cf7d23ba583d1b0d53ceab..1e8084013b5bda6e6476dfc21549da236ffea576 100644 (file)
@@ -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,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