X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-nickname.php;h=294973e4ce7dfc3f99f85aa4805cce3830ea7259;hb=968b5160ae624519f1a9491f00e0aeadf25729fb;hp=bd40a66b78226519a2e7ca046fc8763ca36c9b02;hpb=5c299c999d8b5106dc007dea5317bbb9209e829f;p=mailer.git diff --git a/inc/modules/member/what-nickname.php b/inc/modules/member/what-nickname.php index bd40a66b78..294973e4ce 100644 --- a/inc/modules/member/what-nickname.php +++ b/inc/modules/member/what-nickname.php @@ -70,17 +70,17 @@ 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", array(postRequestParameter('nickname'), getMemberId()), __FILE__, __LINE__); - if (SQL_NUMROWS($result) == '0') { + if (SQL_HASZERONUMS($result)) { // Nickname not in use, so set it now SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `nickname`='%s' WHERE `userid`=%s LIMIT 1", array(postRequestParameter('nickname'), getMemberId()), __FILE__, __LINE__); - $content = getMessage('NICKNAME_SAVED'); + $content = '{--NICKNAME_SAVED--}'; } else { // Free result SQL_FREERESULT($result); // Nickname already in use! - $content = getMessage('NICKNAME_ALREADY_IN_USE'); + $content = '{--NICKNAME_ALREADY_IN_USE--}'; } // Load template