From: Roland Häder Date: Tue, 17 Nov 2009 21:04:57 +0000 (+0000) Subject: Another hack... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34f938e55a87bcb4ca0ba5f612aa110ae75e2101;p=mailer.git Another hack... --- diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index b986d783ba..47478a726b 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -805,8 +805,8 @@ function addMaxReceiveList ($mode, $default = '', $return = false) { // Checks wether the given email address is used. function isEmailTaken ($email) { // Query the database - $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE email LIKE '{PER}%s{PER}' LIMIT 1", - array($email), __FUNCTION__, __LINE__); + $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `email` LIKE '{PER}%s{PER}' OR `email` LIKE '{PER}%s{PER}' LIMIT 1", + array($email, str_replace('.', '{DOT}', $email)), __FUNCTION__, __LINE__); // Is the email there? $ret = (SQL_NUMROWS($result) == 1);