]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-nickname.php
Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / member / what-nickname.php
index 9589728a3a85f9089b6681255465dce676b6333e..6d0587fa53c4c90c0496a0d27f2e9026c1a49494 100644 (file)
@@ -69,7 +69,7 @@ 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(postRequestElement('nickname'), getMemberId()), __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) == 0) {
+       if (SQL_NUMROWS($result) == '0') {
                // 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(postRequestElement('nickname'), getMemberId()), __FILE__, __LINE__);