]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-nickname.php
HTML improved, several tables are now have NULL and some more UNSIGNED (is both better)
[mailer.git] / inc / modules / member / what-nickname.php
index cbb093773663322c20b5fcb17d8be8868d5224fe..d84f555aff9bfcd053ebee59d3b352937236c653 100644 (file)
@@ -65,7 +65,7 @@ if (isFormSent()) {
 
 if ($isValid === true) {
        // Look for nickname in database (we only need just one entry so don't worry about the "LIMIT 1" !)
-       $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `nickname`='%s' AND `userid` != '%s' LIMIT 1",
+       $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `nickname`='%s' AND `userid` != %s LIMIT 1",
                array(postRequestParameter('nickname'), getMemberId()), __FILE__, __LINE__);
        if (SQL_HASZERONUMS($result)) {
                // Nickname not in use, so set it now