]> git.mxchange.org Git - mailer.git/commitdiff
Another hack...
authorRoland Häder <roland@mxchange.org>
Tue, 17 Nov 2009 21:04:57 +0000 (21:04 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 17 Nov 2009 21:04:57 +0000 (21:04 +0000)
inc/mysql-manager.php

index b986d783baef83eb44ccdc717ba0f9a62040e1e0..47478a726b0105fd965cc33bbf322a4be15a19b3 100644 (file)
@@ -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);