- $result = SQL_QUERY_ESC("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `nickname`='%s' AND `userid` != '%s' LIMIT 1",
- array(postRequestElement('nickname'), getUserId()), __FILE__, __LINE__);
- if (SQL_NUMROWS($result) == 0) {
+ $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)) {