]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Yet another bunch of EL/surfbar fixes
[mailer.git] / inc / mysql-manager.php
index b988afb7d9c5c954af4ddd788e896a79d349a5c8..afd2f1caab172368b776823d70d96b759c5d6298 100644 (file)
@@ -820,7 +820,7 @@ 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}' OR `email` LIKE '{PER}%s{PER}' LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `email` LIKE '%%%s%%' OR `email` LIKE '%%%s%%' LIMIT 1",
                array($email, str_replace('.', '{DOT}', $email)), __FUNCTION__, __LINE__);
 
        // Is the email there?
@@ -1269,7 +1269,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
                                // Prepare content
                                $content = array(
                                        'text'   => getMessage('REASON_DIRECT_PAYMENT'),
-                                       'points' => translateComma($ref_points)
+                                       'points' => $ref_points
                                );
 
                                // Load message