* $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 *
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])) {
$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