Hello open the - inc/admin.inc.php
find this function there:
function getID( $str, $with_email = 1 ) {
if ( $with_email ) {
if ( eregi("^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,4}$", $str) ) {
$str = process_db_input($str);
$mail_arr = db_arr( "SELECT `ID` FROM `Profiles` WHERE `Email` = '$str'" );
if ( (int)$mail_arr['ID'] ) {
return (int)$mail_arr['ID'];
}
}
}
$str = process_db_input($str);
$iID = (int)db_value( "SELECT `ID` FROM `Profiles` WHERE `NickName` = '$str'" );
if(!$iID) {
$aProfile = getProfileInfo($str);
$iID = isset($aProfile['ID']) ? $aProfile['ID'] : 0;
}
return $iID;
}
and replace with :
function getID($str) {
$str = process_db_input($str);
$aItem = db_arr( "SELECT `ID` FROM `Profiles` WHERE `Email` = '$str' OR `ID` = '$str' LIMIT 1" );
if ( (int)$aItem['ID'] ) {
return (int)$aItem['ID'];
}
}