public static function find_by_email($email)
	{
		if (empty($email))
		{
			return false;
		}

		$db = \App::get('db');
		$db->setQuery("SELECT username FROM `#__xprofiles` WHERE `email`=" . $db->quote($email));

		$result = $db->loadColumn();

		if (empty($result))
		{
			return false;
		}

		return $result;
	}
public static function find_by_email($email)
	{
		if (empty($email))
		{
			return false;
		}

		$db = \App::get('db');
		$db->setQuery("SELECT username FROM `#__xprofiles` WHERE `email`=" . $db->quote($email));

		$result = $db->loadColumn();

		if (empty($result))
		{
			return false;
		}

		return $result;
	}
public static function find_by_email ( $ email ) { if ( empty ( $ email ) ) { return false ; } $ db = \ App :: get ( 'db' ) ; $ db -> setQuery ( "SELECT username FROM `#__xprofiles` WHERE `email`=" . $ db -> quote ( $ email ) ) ; $ result = $ db -> loadColumn ( ) ; if ( empty ( $ result ) ) { return false ; } return $ result ; }
Find a username by email address

@param   string  $email  Email address to look up
@return  mixed   False if not found, string if found
Find a username by email address